From cbb6066983e197b4caa3c5fcc0b55b7c758c26a6 Mon Sep 17 00:00:00 2001 From: mbpolan Date: Mon, 15 Feb 2021 17:48:39 -0500 Subject: [PATCH 1/4] Add GitHub Actions --- .github/workflows/build.yml | 14 ++++++++++++++ Rapid IRC Client.xcodeproj/project.pbxproj | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c936674 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,14 @@ +name: ci +on: [push] +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + run-config: + - { scheme: 'Rapid IRC Client', destination: 'platform=macOS' } + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Build and Test + run: xcodebuild clean test -scheme '${{ matrix.run-config['scheme'] }}' -destination '${{ matrix.run-config['destination'] }}' -showBuildTimingSummary diff --git a/Rapid IRC Client.xcodeproj/project.pbxproj b/Rapid IRC Client.xcodeproj/project.pbxproj index f9348d1..39b42c4 100644 --- a/Rapid IRC Client.xcodeproj/project.pbxproj +++ b/Rapid IRC Client.xcodeproj/project.pbxproj @@ -22,6 +22,7 @@ 276209EF2585AA8A00212F36 /* NetworkMiddleware.swift in Sources */ = {isa = PBXBuildFile; fileRef = 276209EE2585AA8A00212F36 /* NetworkMiddleware.swift */; }; 276CC0C925D76EA800BD7606 /* ChannelPropertiesSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 276CC0C825D76EA800BD7606 /* ChannelPropertiesSheet.swift */; }; 276CC0CE25DA242200BD7606 /* ModeFlag.swift in Sources */ = {isa = PBXBuildFile; fileRef = 276CC0CD25DA242200BD7606 /* ModeFlag.swift */; }; + 276CC0DB25DB30E300BD7606 /* .github in Resources */ = {isa = PBXBuildFile; fileRef = 276CC0DA25DB30E300BD7606 /* .github */; }; 2776AE05256CABCC00371A28 /* UIReducer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2776AE04256CABCC00371A28 /* UIReducer.swift */; }; 2776AE0D256CABD600371A28 /* UIActions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2776AE0C256CABD600371A28 /* UIActions.swift */; }; 279911DE25AFD9FA004D0DDC /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 279911DB25AFD9FA004D0DDC /* README.md */; }; @@ -95,6 +96,7 @@ 276209EE2585AA8A00212F36 /* NetworkMiddleware.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkMiddleware.swift; sourceTree = ""; }; 276CC0C825D76EA800BD7606 /* ChannelPropertiesSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChannelPropertiesSheet.swift; sourceTree = ""; }; 276CC0CD25DA242200BD7606 /* ModeFlag.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModeFlag.swift; sourceTree = ""; }; + 276CC0DA25DB30E300BD7606 /* .github */ = {isa = PBXFileReference; lastKnownFileType = folder; path = .github; sourceTree = ""; }; 2776AE04256CABCC00371A28 /* UIReducer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIReducer.swift; sourceTree = ""; }; 2776AE0C256CABD600371A28 /* UIActions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIActions.swift; sourceTree = ""; }; 279911DB25AFD9FA004D0DDC /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; @@ -263,6 +265,7 @@ 27CF74BE2543ABD800DA4598 = { isa = PBXGroup; children = ( + 276CC0DA25DB30E300BD7606 /* .github */, 279911DD25AFD9FA004D0DDC /* Podfile */, 279911DB25AFD9FA004D0DDC /* README.md */, 279911DC25AFD9FA004D0DDC /* screenshot.png */, @@ -496,6 +499,7 @@ 27CF74D22543ABDA00DA4598 /* Preview Assets.xcassets in Resources */, 279911E025AFD9FA004D0DDC /* Podfile in Resources */, 279911FE25AFDC6F004D0DDC /* CodeGen in Resources */, + 276CC0DB25DB30E300BD7606 /* .github in Resources */, 27CF74CF2543ABDA00DA4598 /* Assets.xcassets in Resources */, 279911F925AFDC3A004D0DDC /* .sourcery.yml in Resources */, ); From b3064041b9274e38f68bac2eafdd23d8df9b897d Mon Sep 17 00:00:00 2001 From: mbpolan Date: Mon, 15 Feb 2021 17:54:39 -0500 Subject: [PATCH 2/4] Work --- .github/workflows/build.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c936674..0134fef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,14 +1,15 @@ name: ci -on: [push] +on: + pull_request: + push: + branches: + - master + jobs: build: runs-on: macos-latest - strategy: - matrix: - run-config: - - { scheme: 'Rapid IRC Client', destination: 'platform=macOS' } steps: - name: Checkout uses: actions/checkout@v1 - name: Build and Test - run: xcodebuild clean test -scheme '${{ matrix.run-config['scheme'] }}' -destination '${{ matrix.run-config['destination'] }}' -showBuildTimingSummary + run: xcodebuild clean test -scheme 'Rapid IRC Client' -destination 'macos' -showBuildTimingSummary From 06795fc81aa82973a8e98154399343912cc2f76c Mon Sep 17 00:00:00 2001 From: mbpolan Date: Mon, 15 Feb 2021 18:16:45 -0500 Subject: [PATCH 3/4] Work --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0134fef..f097e25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,4 +12,4 @@ jobs: - name: Checkout uses: actions/checkout@v1 - name: Build and Test - run: xcodebuild clean test -scheme 'Rapid IRC Client' -destination 'macos' -showBuildTimingSummary + run: xcodebuild clean test -scheme 'Rapid IRC Client' -destination 'platform=macos' -showBuildTimingSummary From 6d772bc4de9ecb4e36d3cc38c3edddcbce3e24de Mon Sep 17 00:00:00 2001 From: mbpolan Date: Mon, 15 Feb 2021 18:22:59 -0500 Subject: [PATCH 4/4] Work --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f097e25..04e28fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: macos-latest + runs-on: macos-11.0 steps: - name: Checkout uses: actions/checkout@v1