-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (56 loc) · 1.72 KB
/
Copy pathci.yml
File metadata and controls
56 lines (56 loc) · 1.72 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
name: CI
on:
push:
branches: [main]
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'LICENSE'
- 'NOTICE'
pull_request:
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'LICENSE'
- 'NOTICE'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-26
timeout-minutes: 45
env:
CLANG_MODULE_CACHE_PATH: ${{ github.workspace }}/.build/ModuleCache
SWIFTPM_MODULECACHE_OVERRIDE: ${{ github.workspace }}/.build/ModuleCache
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
lfs: true
persist-credentials: false
- name: Check toolchain and LFS assets
run: |
test "$(uname -m)" = arm64
xcodebuild -version
swift --version
git lfs fsck
for script in scripts/*.sh; do bash -n "$script"; done
- name: Run regression tests
run: |
bash scripts/test-release-notes.sh
bash scripts/test-release-version.sh
swift scripts/verify-web-transport.swift --self-test
swift test -c release
- name: Build and verify sandboxed app
run: scripts/build-app.sh
- name: Package inspection build (not runnable without team signing)
run: ditto -c -k --sequesterRsrc --keepParent dist/Studio.app dist/Studio-development-macOS-arm64.zip
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: Studio-packaging-inspection-macOS-arm64
path: dist/Studio-development-macOS-arm64.zip
if-no-files-found: error
retention-days: 7