Release v0.0.1 (take 8): Initial release of the compiler and SDK crates #966
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "*.md" | |
pull_request: | |
paths-ignore: | |
- "*.md" | |
env: | |
CARGO_MAKE_TOOLCHAIN: nightly-2024-05-07 | |
jobs: | |
compiler: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.CARGO_MAKE_TOOLCHAIN }} | |
override: true | |
- name: Cache Cargo | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
key: ${{ github.workflow }}-${{ github.job }}-toolchain-${{ env.CARGO_MAKE_TOOLCHAIN }} | |
- name: Install cargo-make | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-make | |
- name: Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: make | |
args: build | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: make | |
args: test -E 'not package(cargo-miden)' | |
cargo_miden_test_clean_env: | |
# Run cargo-miden test in the clean env to simulate user's first run. | |
# To test the installation of the required dependencies (e.g. rust-src, wasm target, etc.) | |
name: cargo-miden tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.CARGO_MAKE_TOOLCHAIN }} | |
override: true | |
- name: Cache Cargo | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
key: ${{ github.workflow }}-${{ github.job }}-toolchain-${{ env.CARGO_MAKE_TOOLCHAIN }} | |
- name: Install cargo-make | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-make | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: make | |
args: test -E 'package(cargo-miden)' | |
clippy: | |
name: clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.CARGO_MAKE_TOOLCHAIN }} | |
override: true | |
- name: Cache Cargo | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
key: ${{ github.workflow }}-${{ github.job }}-toolchain-${{ env.CARGO_MAKE_TOOLCHAIN }} | |
- name: Install cargo-make | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-make | |
- name: Run clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: make | |
args: clippy | |
rustfmt: | |
name: rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.CARGO_MAKE_TOOLCHAIN }} | |
override: true | |
- name: Cache Cargo | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
key: ${{ github.workflow }}-${{ github.job }}-toolchain-${{ env.CARGO_MAKE_TOOLCHAIN }} | |
- name: Install cargo-make | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-make | |
- name: rustfmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: make | |
args: check-format |