CI: Builds also the server for ARM macs

pull/402/head
Tpt 2 years ago committed by Thomas Tanon
parent af02d5e1c4
commit 306271df61
  1. 8
      .github/workflows/artifacts.yml
  2. 5
      .github/workflows/release.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

@ -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

Loading…
Cancel
Save