Switch to mlugg/setup-zig@v1 #178
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 | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: hecrj/setup-rust-action@master | |
with: | |
rust-version: stable | |
- name: Check Cargo availability | |
run: cargo --version | |
- name: Check Rustup default toolchain | |
run: rustup default | grep stable | |
- name: Build without default features | |
run: | | |
env RUSTFLAGS="-C link-arg=-s" cargo check --no-default-features | |
- name: Build with default features | |
run: | | |
env RUSTFLAGS="-C link-arg=-s" cargo check |