-
-
Notifications
You must be signed in to change notification settings - Fork 309
64 lines (58 loc) · 1.56 KB
/
xcodeproj.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idname
name: XcodeProj
on:
push:
branches:
- main
pull_request: {}
concurrency:
group: xcodeproj-${{ github.head_ref }}
cancel-in-progress: true
env:
MISE_EXPERIMENTAL: 1
jobs:
build:
name: Build (macOS)
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Select Xcode 16
run: sudo xcode-select -switch /Applications/Xcode_16.app/Contents/Developer
- uses: jdx/mise-action@v2
- name: Build
run: mise run build
build-linux:
name: Build (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jdx/mise-action@v2
- name: Build
run: mise run build-linux
test:
name: Test (macOS / Xcode)
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Select Xcode 16
run: sudo xcode-select -switch /Applications/Xcode_16.app/Contents/Developer
- uses: jdx/mise-action@v2
- name: Run tests
run: mise run test
test-linux:
name: Test (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jdx/mise-action@v2
- name: Test
run: mise run test-linux
lint:
name: Lint
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Select Xcode 16
run: sudo xcode-select -switch /Applications/Xcode_16.app/Contents/Developer
- uses: jdx/mise-action@v2
- run: mise run lint