This repository was archived by the owner on Mar 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
84 lines (69 loc) · 2.24 KB
/
Copy pathci.yml
File metadata and controls
84 lines (69 loc) · 2.24 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Unit Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# concurrency:
# group: unit-tests-${{ github.ref }}
# cancel-in-progress: false
jobs:
unit_test:
name: Build and Test iPhone simulator
#runs-on: macos-26
runs-on: [self-hosted, macOS]
steps:
# - name: Setup sccache for GitHub-hosted
# if: runner.environment == 'github-hosted'
# run: |
# echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
# echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
# - name: Cache Cargo Dependencies
# if: runner.environment == 'github-hosted'
# uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# key: ${{ runner.os }}-cargo-deps-${{ hashFiles('core/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-cargo-deps-
# - name: Cache Cargo Target
# if: runner.environment == 'github-hosted'
# uses: actions/cache@v4
# with:
# path: |
# core/target
# key: ${{ runner.os }}-cargo-deps-${{ hashFiles('core/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-cargo-deps-
# - name: Cache Swift Package Manager
# if: runner.environment == 'github-hosted'
# uses: actions/cache@v4
# with:
# path: |
# ~/.swiftpm
# .build
# key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }}
# restore-keys: |
# ${{ runner.os }}-spm-
# - name: Run sccache-cache
# if: runner.environment == 'github-hosted'
# uses: mozilla-actions/sccache-action@v0.0.8
# - name: Install just
# if: runner.environment == 'github-hosted'
# run: brew install just
- name: Install dependencies
run: just install-toolchains
- name: Build Core
run: just generate-stone
- name: Resolve SPM Dependencies
run: just spm-resolve
- name: Build for Testing
run: just build-for-testing
- name: Unit Tests
run: just test-without-building