Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Apple Silicon build of vegafusion-server #277

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
[ubuntu-latest, linux-64],
[windows-2022, win-64],
[macos-11, osx-64],
[macos-11, osx-arm64],
]
runs-on: ${{ matrix.options[0] }}
steps:
Expand All @@ -108,18 +109,28 @@ jobs:
uses: Swatinem/rust-cache@v1
with:
cache-on-failure: True
- name: Download Apple Silicon toolchain
if: ${{ matrix.options[1] == 'osx-arm64' }}
run: |
rustup target add aarch64-apple-darwin
- name: Build vegafusion-server (Windows)
uses: actions-rs/cargo@v1
if: ${{ runner.os == 'Windows' }}
with:
command: build
args: -p vegafusion-server --release
- name: Build vegafusion-server (non-Windows)
- name: Build vegafusion-server (Mac/Linux)
uses: actions-rs/cargo@v1
if: ${{ runner.os != 'Windows' }}
if: ${{ matrix.options[1] != 'osx-arm64' && runner.os != 'Windows'}}
with:
command: build
args: -p vegafusion-server --release --features=protobuf-src
- name: Build vegafusion-server (Apple Silicon)
uses: actions-rs/cargo@v1
if: ${{ matrix.options[1] == 'osx-arm64' }}
with:
command: build
args: -p vegafusion-server --release --target aarch64-apple-darwin --features=protobuf-src
- name: zip executable (Windows)
uses: papeloto/action-zip@v1
if: runner.os == 'Windows'
Expand Down