Skip to content

Commit 5a2f31b

Browse files
committed
fix ci
1 parent 758a137 commit 5a2f31b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/build.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,26 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v3
1111

12+
- name: Setup Homebrew
13+
uses: Homebrew/actions/setup-homebrew@master
14+
15+
- name: Install Taskfile
16+
run: brew install go-task
17+
1218
- name: Setup Rust Toolchain
1319
uses: ATiltedTree/setup-rust@v1
1420
with:
15-
rust-version: stable
21+
rust-version: nightly
22+
targets: 'aarch64-apple-darwin x86_64-apple-darwin'
1623

1724
- name: Build
18-
run: cargo build --release
25+
run: task build-universal
1926

2027
- name: Upload Artifact
2128
uses: actions/upload-artifact@v3
2229
with:
2330
name: swift-precompiler
24-
path: target/release/swift-precompiler
31+
path: target/swift-precompiler
2532

2633
- uses: sarisia/actions-status-discord@v1
2734
if: always()

Taskfile.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ tasks:
1414
generates:
1515
- "target/aarch64-apple-darwin/release/{{.BINARY_NAME}}"
1616
- "target/x86_64-apple-darwin/release/{{.BINARY_NAME}}"
17+
- "target/{{.BINARY_NAME}}"
1718
cmds:
1819
- |
1920
cargo build --release --target x86_64-apple-darwin

0 commit comments

Comments
 (0)