|
1 | | -on: |
2 | | - pull_request: |
3 | | - workflow_dispatch: |
| 1 | +on: |
| 2 | + pull_request: |
| 3 | + workflow_dispatch: |
4 | 4 |
|
5 | 5 | # this cancels workflows currently in progress if you start a new one |
6 | 6 | concurrency: |
7 | | - group: ${{ github.workflow }}-${{ github.ref }} |
8 | | - cancel-in-progress: true |
| 7 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 8 | + cancel-in-progress: true |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - build-and-test-nix: |
12 | | - strategy: |
13 | | - fail-fast: false |
14 | | - matrix: |
15 | | - # macos-12 uses x86-64 machine, macos-14 uses aarch64 |
16 | | - os: [ macos-12, macos-14, ubuntu-22.04 ] |
17 | | - runs-on: ${{ matrix.os }} |
18 | | - steps: |
19 | | - - uses: actions/checkout@v3 |
20 | | - |
21 | | - # install nix |
22 | | - - uses: cachix/install-nix-action@v23 |
23 | | - with: |
24 | | - nix_path: nixpkgs=channel:nixos-unstable |
25 | | - |
26 | | - - uses: cachix/cachix-action@v12 |
27 | | - with: |
28 | | - name: enigmaticsunrise |
29 | | - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' |
30 | | - |
31 | | - - name: print architecture |
32 | | - run: uname -m |
33 | | - |
34 | | - - name: Run all tests |
35 | | - run: nix develop -c sh -c 'export ROC=roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh' |
36 | | - |
37 | | - - name: Run all tests and capture output to check for crash later |
38 | | - run: nix develop -c sh -c 'export ROC=roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh 2>&1 | tee all_tests_output.log' |
39 | | - |
40 | | - # Workaround for https://github.com/roc-lang/roc/issues/6688 |
41 | | - - name: Check if crash occurred |
42 | | - run: grep -qv "crashed" all_tests_output.log |
43 | | - |
44 | | - |
| 11 | + build-and-test-nix: |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + # macos-12 uses x86-64 machine, macos-14 uses aarch64 |
| 16 | + os: [macos-12, macos-14, ubuntu-22.04] |
| 17 | + runs-on: ${{ matrix.os }} |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v3 |
| 20 | + |
| 21 | + # install nix |
| 22 | + - uses: cachix/install-nix-action@v23 |
| 23 | + with: |
| 24 | + nix_path: nixpkgs=channel:nixos-unstable |
| 25 | + |
| 26 | + - uses: cachix/cachix-action@v12 |
| 27 | + with: |
| 28 | + name: enigmaticsunrise |
| 29 | + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" |
| 30 | + |
| 31 | + - name: print architecture |
| 32 | + run: uname -m |
| 33 | + |
| 34 | + - name: Run all tests |
| 35 | + run: nix develop -c sh -c 'export ROC=roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh' |
| 36 | + |
| 37 | + - name: Run all tests and capture output to check for crash later |
| 38 | + run: nix develop -c sh -c 'export ROC=roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh 2>&1 | tee all_tests_output.log' |
| 39 | + |
| 40 | + # Workaround for https://github.com/roc-lang/roc/issues/6688 |
| 41 | + - name: Check if crash occurred |
| 42 | + run: grep -qv "crashed" all_tests_output.log |
0 commit comments