forked from COVESA/dlt-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.07 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
40
41
42
43
name: PullRequest
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
buildMac:
name: Build macOS
runs-on: ${{ matrix.macos }}
strategy:
matrix:
macos: [ macos-13 ]
xcode: [ Xcode_15.2 ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Investigate available XCode versions
run: ls -n /Applications/ | grep Xcode*
- name: Set XCode Version
run: |
sudo xcode-select -s /Applications/${{ matrix.xcode }}.app
xcodebuild -version
xcode-select --print-path
- name: Install build environment
run: scripts/darwin/install.sh
- name: Show cmake version
run: cmake --version
- name: Build project
run: scripts/darwin/build.sh
- name: Archive artifact
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: DLTViewer-${{ matrix.macos }}-x86_64
path: build/dist/DLTViewer*.tgz