diff --git a/.github/workflows/BuildPR.yml b/.github/workflows/BuildPR.yml new file mode 100644 index 000000000..f53c79283 --- /dev/null +++ b/.github/workflows/BuildPR.yml @@ -0,0 +1,29 @@ +name: PullRequest + +on: [pull_request] + +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 + with: + fetch-depth: 0 + submodules: true + - name: Set XCode Version + run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app + - name: Build project + run: xcodebuild -workspace ObjectiveGitFramework.xcworkspace -scheme "ObjectiveGit Mac" archive | xcpretty + - name: Xcodebuild Action + uses: sersoft-gmbh/xcodebuild-action@v1.1 + with: + project: ObjectiveGitFramework.xcodeproj + scheme: ObjectiveGit Mac + configuration: Release + action: archive