-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (44 loc) · 1.28 KB
/
Copy pathci.yml
File metadata and controls
57 lines (44 loc) · 1.28 KB
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
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: zsh {0}
jobs:
build-and-test:
name: Build and test
runs-on: macos-26
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Show toolchain
run: |
xcodebuild -version
swift --version
xcrun --show-sdk-version
- name: Validate scripts
run: zsh -n Scripts/*.sh
- name: Build
run: swift build --build-tests
- name: Test
run: swift test
- name: Build sandboxed application bundle
run: ./Scripts/build-app.sh release sandboxed -
- name: Verify application bundle
run: |
codesign --verify --deep --strict --verbose=2 build/CrystalSpace.app
test -f build/CrystalSpace.app/Contents/Resources/Assets.car
test -f build/CrystalSpace.app/Contents/Resources/CrystalSpaceAppIcon.icns
test "$(plutil -extract CFBundleIconName raw build/CrystalSpace.app/Contents/Info.plist)" = "CrystalSpaceAppIcon"
- name: Check whitespace
run: git diff --check