forked from libgit2/objective-git
-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (37 loc) · 1.08 KB
/
BuildPR.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: PullRequest
on:
push:
branches:
- master
pull_request:
jobs:
build-objective-git:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os : [ macOS-13 ]
xcode: [ Xcode_14.1, Xcode_14.2, Xcode_15.1, Xcode_15.2 ]
steps:
- name: ls Xcode
run: ls -la /Applications/Xcode*
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Set XCode Version
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app
- name: Show openssl version
run: |
openssl version
- run: script/bootstrap
- run: script/update_libgit2
- name: Show openssl version
run: |
openssl version
- name: Archive project
run: xcodebuild -workspace ObjectiveGitFramework.xcworkspace -scheme "ObjectiveGit Mac" test ARCHS="x86_64"
- name: Test project
run: xcodebuild -workspace ObjectiveGitFramework.xcworkspace -scheme "ObjectiveGit Mac" archive ARCHS="x86_64"