renaming to spark (#63) #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
env: | |
CARGO_TERM_COLOR: always | |
name: build and test | |
jobs: | |
tests: | |
name: build and test ${{ matrix.job.name }} | |
runs-on: ${{ matrix.job.os }} | |
strategy: | |
matrix: | |
job: | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
name: linux-amd64 | |
- os: ubuntu-latest | |
target: aarch64-unknown-linux-gnu | |
name: linux-arm64 | |
- os: macos-latest | |
target: x86_64-apple-darwin | |
name: darwin-amd64 | |
- os: macos-latest | |
target: aarch64-apple-darwin | |
name: darwin-arm64 | |
- os: windows-latest | |
target: x86_64-pc-windows-msvc | |
name: windows-amd64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
target: ${{ matrix.job.target }} | |
- name: Check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Git | |
run: | | |
git config --global user.name "GitHub Actions Bot" | |
git config --global user.email "<>" | |
- name: Apple M1 setup | |
if: ${{ matrix.job.target == 'aarch64-apple-darwin' }} | |
run: | | |
echo "SDKROOT=$(xcrun -sdk macosx --show-sdk-path)" >> $GITHUB_ENV | |
echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" >> $GITHUB_ENV | |
- name: Linux ARM setup | |
if: ${{ matrix.job.target == 'aarch64-unknown-linux-gnu' }} | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y gcc-aarch64-linux-gnu | |
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV | |
# For some reason the FFI cheatcode uses WSL bash instead of Git bash, so we need to install a WSL distribution | |
- name: Windows setup | |
if: ${{ matrix.job.target == 'x86_64-pc-windows-msvc' }} | |
uses: Vampire/setup-wsl@v1 | |
with: | |
distribution: Ubuntu-20.04 | |
set-as-default: true | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all --all-features |