|
8 | 8 | CARGO_TERM_COLOR: always |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - test: |
| 11 | + # This job handles all testing |
| 12 | + test-all: |
12 | 13 | runs-on: ubuntu-latest |
13 | 14 | steps: |
14 | 15 | - uses: actions/checkout@v4 |
15 | | - |
16 | | - - name: Install Rust |
17 | | - uses: dtolnay/rust-toolchain@stable |
18 | | - |
19 | | - - name: Cache cargo dependencies |
20 | | - uses: actions/cache@v4 |
21 | | - with: |
22 | | - path: | |
23 | | - ~/.cargo/bin/ |
24 | | - ~/.cargo/registry/index/ |
25 | | - ~/.cargo/registry/cache/ |
26 | | - ~/.cargo/git/db/ |
27 | | - target/ |
28 | | - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
| 16 | + - uses: dtolnay/rust-toolchain@stable |
| 17 | + # ... (insert your cache step here) ... |
29 | 18 |
|
30 | 19 | - name: Compiler Tests |
31 | 20 | working-directory: ./compiler |
32 | | - run: cargo test --verbose |
33 | | - |
| 21 | + run: cargo test |
34 | 22 | - name: Interpreter Tests |
35 | 23 | working-directory: ./interpreter |
36 | | - run: cargo test --verbose |
| 24 | + run: cargo test |
37 | 25 |
|
38 | | - build: |
| 26 | + # Now we split the builds into separate jobs |
| 27 | + build-compiler: |
39 | 28 | runs-on: ubuntu-latest |
40 | 29 | steps: |
41 | 30 | - uses: actions/checkout@v4 |
42 | | - |
43 | | - - name: Install Rust |
44 | | - uses: dtolnay/rust-toolchain@stable |
45 | | - |
46 | | - - name: Cache cargo dependencies |
47 | | - uses: actions/cache@v4 |
48 | | - with: |
49 | | - path: | |
50 | | - ~/.cargo/bin/ |
51 | | - ~/.cargo/registry/index/ |
52 | | - ~/.cargo/registry/cache/ |
53 | | - ~/.cargo/git/db/ |
54 | | - target/ |
55 | | - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
| 31 | + - uses: dtolnay/rust-toolchain@stable |
| 32 | + # ... (insert your cache step here) ... |
56 | 33 |
|
57 | 34 | - name: Build Compiler |
58 | 35 | working-directory: ./compiler |
59 | | - run: cargo build --release --verbose |
| 36 | + run: cargo build --release |
| 37 | + |
| 38 | + build-interpreter: |
| 39 | + runs-on: ubuntu-latest |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@v4 |
| 42 | + - uses: dtolnay/rust-toolchain@stable |
| 43 | + # ... (insert your cache step here) ... |
60 | 44 |
|
61 | 45 | - name: Build Interpreter |
62 | 46 | working-directory: ./interpreter |
63 | | - run: cargo build --release --verbose |
| 47 | + run: cargo build --release |
0 commit comments