Skip to content

Update build.yml

Update build.yml #3

Workflow file for this run

name: Check
on:
- push
env:
CARGO_NET_RETRY: 10
CI: 1
RUSTUP_MAX_RETRIES: 10
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
components: clippy
- name: Install System packages
run: |
sudo apt update
sudo apt install nasm
- name: Clippy
run: cargo clippy
env:
RUSTFLAGS: "-D warnings"
- name: Test
run: cargo test --lib -- --test-threads 1
env:
RUSTFLAGS: ""
- name: Check C
run: |
scripts/check.sh \
"./release.sh | tee /tmp/code.c" \
"cc -w /tmp/code.c -o /tmp/bin"
- name: Check Rust
run: |
scripts/check.sh \
"./release-rs.sh | tee /tmp/code.rs" \
"rustc +stable -O -A dead-code /tmp/code.rs -o /tmp/bin"
- name: Run tests
run: |
./test.sh