Skip to content

Update thread_spawn to take an argument value #359

Update thread_spawn to take an argument value

Update thread_spawn to take an argument value #359

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install SDL2
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
sudo apt-get install libsdl2-dev
- name: Build API
working-directory: ./api
run: cargo build
- name: Test VM
working-directory: ./vm
run: RUST_BACKTRACE=1 cargo test
- name: Test NCC
working-directory: ./ncc
run: |
pwd
ls -al
RUST_BACKTRACE=1 cargo test
- name: Test NCC command-line arguments
working-directory: ./ncc
run: |
cargo run examples/chess.c
cargo run -- -o output_file.asm examples/chess.c
cargo run -- -E examples/crc32.c > /dev/null
cargo run -- -DTEST tests/test_macro.c