Merge pull request #17 from BToersche/main #136
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: Rust-CI | |
on: | |
push: {} | |
pull_request: {} | |
workflow_dispatch: {} | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-debug: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: stable | |
- name: Debug Build | |
run: cargo build --verbose | |
build-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: stable | |
- name: Release Build | |
run: cargo build --release --verbose | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: stable | |
- name: Install wasm32 | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install trunk | |
run: cargo install --locked trunk | |
- name: Run tests | |
run: make test |