-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (35 loc) · 1015 Bytes
/
ci-mac.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
name: CI (Mac)
on:
workflow_call:
inputs:
kernel-target:
type: string
required: true
env:
CMAKE_BUILD_PARALLEL_LEVEL: "3"
jobs:
build:
name: Mac M1
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update Rust
run: rustup update stable
- name: Install Rust nightly
run: rustup toolchain install nightly
- name: Install additional Rust components
run: rustup component add rust-src --toolchain nightly
- name: Install additional Rust targets
run: rustup target add ${{ inputs.kernel-target }}
- name: Build
run: ./build.py -r
- name: Run tests
run: cargo test --workspace --exclude gui --exclude kernel
- name: Create Apple Disk Image
run: hdiutil create -volname Obliteration -srcfolder dist Obliteration.dmg
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: obliteration-mac-m1
path: Obliteration.dmg