Implement alloca(n) / alloca.h in uvclang #469
This file contains hidden or 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: 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: Install Clang | |
| run: sudo apt-get install -y clang | |
| - name: Build spec | |
| working-directory: ./spec | |
| run: cargo build | |
| - name: Check generated bindings are up to date | |
| working-directory: ./spec | |
| run: cargo run && git diff --exit-code | |
| - 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 | |
| - name: Test uvclang | |
| working-directory: ./uvclang | |
| run: RUST_BACKTRACE=1 cargo test | |
| - name: Test uvclang end-to-end (C -> UVM via front end, differential vs native) | |
| run: | | |
| clang --version # fail loudly if the toolchain is missing rather than skipping every test | |
| ./uvclang/run_tests.sh | |
| - name: Test uvclang <uvm/...> headers (self-checking, no native equivalent) | |
| run: ./uvclang/run_uvm_tests.sh | |
| - name: Compile uvclang examples (compile + UVM --parse-only smoke test) | |
| run: ./uvclang/build_examples.sh |