From 6fe35aae8153ebb7f33c6ffa7626af8affa2f437 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sun, 22 Nov 2020 09:53:28 +0100 Subject: [PATCH 1/2] Github CI Update CI names Change CI build target --- .github/workflows/BuildPR.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/BuildPR.yml diff --git a/.github/workflows/BuildPR.yml b/.github/workflows/BuildPR.yml new file mode 100644 index 000000000..ffe8ab6d0 --- /dev/null +++ b/.github/workflows/BuildPR.yml @@ -0,0 +1,25 @@ +name: PullRequest + +on: [pull_request] + +jobs: + build-objective-git: + name: Build objective-git + runs-on: macOS-latest + steps: + - name: Checkout + uses: actions/checkout@v2.3.3 + with: + fetch-depth: 0 + submodules: true + - name: Set XCode Version + run: sudo xcode-select -s /Applications/Xcode_12.2.app + - name: Build project + run: xcodebuild -workspace ObjectiveGitFramework.xcworkspace -scheme "ObjectiveGit Mac" build | xcpretty + - name: Xcodebuild Action + uses: sersoft-gmbh/xcodebuild-action@v1.1 + with: + project: ObjectiveGitFramework.xcodeproj + scheme: ObjectiveGit Mac + configuration: Release + action: archive From c85108cde3f3b00a0f9f7941f8ff520acbbe0097 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Fri, 5 Feb 2021 08:18:45 +0100 Subject: [PATCH 2/2] Build multiple Xcode versions during pull request --- .github/workflows/BuildPR.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/BuildPR.yml b/.github/workflows/BuildPR.yml index ffe8ab6d0..f53c79283 100644 --- a/.github/workflows/BuildPR.yml +++ b/.github/workflows/BuildPR.yml @@ -6,6 +6,10 @@ jobs: build-objective-git: name: Build objective-git runs-on: macOS-latest + strategy: + fail-fast: false + matrix: + xcode: [Xcode_11.7, Xcode_12.2, Xcode_12.4] steps: - name: Checkout uses: actions/checkout@v2.3.3 @@ -13,9 +17,9 @@ jobs: fetch-depth: 0 submodules: true - name: Set XCode Version - run: sudo xcode-select -s /Applications/Xcode_12.2.app + run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app - name: Build project - run: xcodebuild -workspace ObjectiveGitFramework.xcworkspace -scheme "ObjectiveGit Mac" build | xcpretty + run: xcodebuild -workspace ObjectiveGitFramework.xcworkspace -scheme "ObjectiveGit Mac" archive | xcpretty - name: Xcodebuild Action uses: sersoft-gmbh/xcodebuild-action@v1.1 with: