Skip to content

Commit 53fb411

Browse files
authored
latest setup-roc
1 parent 3a8c409 commit 53fb411

File tree

2 files changed

+8
-32
lines changed

2 files changed

+8
-32
lines changed

.github/workflows/tests_alpha.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
- uses: roc-lang/setup-roc@68881a790d8281b2466c27e1955517e0c2f6bb6b
25+
- uses: roc-lang/setup-roc@e2e4452c2bfb0380daadefdb23b989bc9748c63b
26+
with:
27+
version: alpha4-rolling
2628

2729
- name: Run Roc
2830
run: roc version

.github/workflows/tests_nightly.yml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,12 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
- name: Set OS-specific variables
26-
id: vars
27-
run: |
28-
if [[ "${{ matrix.operating-system }}" =~ ^ubuntu- ]]; then
29-
if [[ "${{ matrix.operating-system }}" =~ -arm$ ]]; then
30-
echo "os_pattern=linux_arm64" >> $GITHUB_OUTPUT
31-
else
32-
echo "os_pattern=linux_x86_64" >> $GITHUB_OUTPUT
33-
fi
34-
elif [ "${{ matrix.operating-system }}" = "macos-13" ]; then
35-
echo "os_pattern=macos_x86_64" >> $GITHUB_OUTPUT
36-
else
37-
echo "os_pattern=macos_apple_silicon" >> $GITHUB_OUTPUT
38-
fi
39-
40-
- name: Download latest nightly release
41-
run: |
42-
curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-${{ steps.vars.outputs.os_pattern }}-latest.tar.gz
43-
44-
- name: rename nightly tar
45-
run: mv $(ls | grep "roc_nightly.*tar\.gz") roc_nightly.tar.gz
46-
47-
- name: decompress the tar
48-
run: tar -xzf roc_nightly.tar.gz
49-
50-
- run: rm roc_nightly.tar.gz
51-
52-
- name: simplify nightly folder name
53-
run: mv roc_nightly* roc_nightly
25+
- uses: roc-lang/setup-roc@e2e4452c2bfb0380daadefdb23b989bc9748c63b
26+
with:
27+
version: nightly
5428

55-
- name: get short commit SHA
56-
run: echo "SHORT_COMMIT_SHA=$(./roc_nightly/roc version | grep -oP 'commit \K[a-f0-9]+' )" >> $GITHUB_ENV
29+
- name: Run Roc
30+
run: roc version
5731

5832
- name: Install dependencies (Ubuntu)
5933
if: startsWith(matrix.operating-system, 'ubuntu-')

0 commit comments

Comments
 (0)