Skip to content

Commit 3a3228c

Browse files
authored
try setup-roc action
1 parent e4d7403 commit 3a3228c

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

.github/workflows/tests_alpha.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,12 @@ jobs:
2121
timeout-minutes: 90
2222
steps:
2323
- uses: actions/checkout@v4
24+
25+
- uses: roc-lang/setup-roc@68881a790d8281b2466c27e1955517e0c2f6bb6b
2426

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 alpha release
41-
run: |
42-
curl -fOL https://github.com/roc-lang/roc/releases/download/alpha4-rolling/roc-${{ steps.vars.outputs.os_pattern }}-alpha4-rolling.tar.gz
43-
44-
- name: rename alpha tar
45-
run: mv $(ls | grep "roc-.*tar\.gz") roc_alpha.tar.gz
46-
47-
- name: decompress the tar
48-
run: tar -xzf roc_alpha.tar.gz
49-
50-
- run: rm roc_alpha.tar.gz
51-
52-
- name: simplify nightly folder name
53-
run: mv roc_nightly* roc_alpha
54-
55-
- name: get short commit SHA
56-
run: echo "SHORT_COMMIT_SHA=$(./roc_alpha/roc version | grep -oP 'commit \K[a-f0-9]+' )" >> $GITHUB_ENV
57-
27+
- name: Run Roc
28+
run: roc version
29+
5830
- name: Install dependencies (Ubuntu)
5931
if: startsWith(matrix.operating-system, 'ubuntu-')
6032
run: sudo apt install -y expect

0 commit comments

Comments
 (0)