Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lockieluke committed Jan 13, 2024
1 parent 758a137 commit 5a2f31b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,26 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Install Taskfile
run: brew install go-task

- name: Setup Rust Toolchain
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
rust-version: nightly
targets: 'aarch64-apple-darwin x86_64-apple-darwin'

- name: Build
run: cargo build --release
run: task build-universal

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: swift-precompiler
path: target/release/swift-precompiler
path: target/swift-precompiler

- uses: sarisia/actions-status-discord@v1
if: always()
Expand Down
1 change: 1 addition & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tasks:
generates:
- "target/aarch64-apple-darwin/release/{{.BINARY_NAME}}"
- "target/x86_64-apple-darwin/release/{{.BINARY_NAME}}"
- "target/{{.BINARY_NAME}}"
cmds:
- |
cargo build --release --target x86_64-apple-darwin
Expand Down

0 comments on commit 5a2f31b

Please sign in to comment.