Skip to content

Commit da63c06

Browse files
authored
test native on arm64 linux too
1 parent 6fdf706 commit da63c06

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,20 @@ jobs:
1212
runs-on: ${{ matrix.operating-system }}
1313
strategy:
1414
matrix:
15-
operating-system: [ubuntu-22.04, ubuntu-24.04]
15+
operating-system: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
1616
steps:
1717
- uses: actions/checkout@v3
1818

1919
- name: Does init() in platform/src/lib.rs contain all roc_fx functions? (Imperfect check)
2020
run: cat platform/src/lib.rs | grep -oP 'roc_fx_[^(\s]*' | sort | uniq -u | grep -q . && exit 1 || exit 0
2121

22-
- id: try_fetching_testing_release
23-
continue-on-error: true
22+
- name: Downloading latest roc nightly
2423
run: |
25-
curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-TESTING.tar.gz
26-
27-
- name: There are no TESTING releases, checking regular releases instead
28-
if: steps.try_fetching_testing_release.outcome == 'failure'
29-
run: |
30-
curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
24+
if [[ "${{ runner.os }}-${{ runner.arch }}" == "Linux-ARM64" ]]; then
25+
curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_arm64-latest.tar.gz
26+
else
27+
curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
28+
fi
3129
3230
- name: rename nightly tar
3331
run: mv $(ls | grep "roc_nightly.*tar\.gz") roc_nightly.tar.gz

0 commit comments

Comments
 (0)