From 5a2f31ba61f5edea67e5ed82d2b978993aed2e00 Mon Sep 17 00:00:00 2001 From: Sherlock Luk Date: Sat, 13 Jan 2024 13:07:04 +0000 Subject: [PATCH] fix ci --- .github/workflows/build.yml | 13 ++++++++++--- Taskfile.yml | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40a47b8..de6a6de 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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() diff --git a/Taskfile.yml b/Taskfile.yml index f3da316..d81c3a3 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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