-
-
Notifications
You must be signed in to change notification settings - Fork 22
61 lines (49 loc) · 1.67 KB
/
Copy pathtest.yml
File metadata and controls
61 lines (49 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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 (LLVM IR -> UVM, differential vs native)
run: |
clang --version # fail loudly if the toolchain is missing rather than skipping every test
./uvclang/tests/run_tests.sh
- name: Test uvclang <uvm/...> headers (self-checking, no native equivalent)
run: ./uvclang/tests/run_uvm_tests.sh