Standardise CI & Makefile across Miden repos #15
Workflow file for this run
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
# Runs build related jobs. | |
name: build | |
on: | |
push: | |
branches: [main, next] | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
metal: | |
name: Build for metal | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [stable, nightly] | |
steps: | |
- uses: actions/checkout@main | |
- name: Build for metal | |
run: | | |
rustup update --no-self-update ${{ matrix.toolchain }} | |
make exec-metal | |
sve: | |
name: Build for sve | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [stable, nightly] | |
steps: | |
- uses: actions/checkout@main | |
- name: Build for sve | |
run: | | |
rustup update --no-self-update ${{ matrix.toolchain }} | |
make exec-sve | |
avx2: | |
name: Build for avx2 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [stable, nightly] | |
steps: | |
- uses: actions/checkout@main | |
- name: Build for avx2 | |
run: | | |
rustup update --no-self-update ${{ matrix.toolchain }} | |
make exec-avx2 | |
no-std: | |
name: Build for no-std | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [stable, nightly] | |
steps: | |
- uses: actions/checkout@main | |
- name: Build for no-std | |
run: | | |
rustup update --no-self-update ${{ matrix.toolchain }} | |
rustup target add wasm32-unknown-unknown | |
make build-no-std |