From 306271df61711dc3452a74f1921eecaa7762d928 Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 27 Feb 2023 14:04:35 +0100 Subject: [PATCH] CI: Builds also the server for ARM macs --- .github/workflows/artifacts.yml | 8 +++++++- .github/workflows/release.yml | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index f6bf522f..0ae7d4d9 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -35,14 +35,20 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - - run: rustup update + - run: rustup update && rustup target add aarch64-apple-darwin - uses: Swatinem/rust-cache@v2 - run: cargo build --release working-directory: ./server + - run: cargo build --release --target aarch64-apple-darwin + working-directory: ./server - uses: actions/upload-artifact@v3 with: name: oxigraph_server_x86_64_apple path: target/release/oxigraph_server + - uses: actions/upload-artifact@v3 + with: + name: oxigraph_server_aarch64_apple + path: target/aarch64-apple-darwin/release/oxigraph_server binary_windows: runs-on: windows-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c98ed667..11a090bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -263,10 +263,13 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - - run: rustup update + - run: rustup update && rustup target add aarch64-apple-darwin - run: cargo build --release working-directory: ./server + - run: cargo build --release --target aarch64-apple-darwin + working-directory: ./server - run: mv target/release/oxigraph_server oxigraph_server_${{ github.event.release.tag_name }}_x86_64_apple + - run: mv target/aarch64-apple-darwin/release/oxigraph_server oxigraph_server_${{ github.event.release.tag_name }}_aarch64_apple - uses: softprops/action-gh-release@v1 with: files: oxigraph_server_${{ github.event.release.tag_name }}_x86_64_apple