File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,25 +19,19 @@ jobs:
1919 - name : Check out the repository
2020 uses : actions/checkout@v4
2121
22- - name : Downloading latest roc nightly
23- run : |
24- curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
25-
26- - name : prep nightly tar for use
27- run : |
28- mv $(ls | grep "roc_nightly.*tar\.gz") roc_nightly.tar.gz
29- tar -xzf roc_nightly.tar.gz
30- rm roc_nightly.tar.gz
31- mv roc_nightly* roc_nightly
22+ - uses : roc-lang/setup-roc@39c354a6a838a0089eea9068a0414f49b62c5c08
23+ with :
24+ # Note: nightly hashes are not verified because they are updated regularly.
25+ version : nightly
3226
33- - run : ./roc_nightly/ roc version
27+ - run : roc version
3428
3529 - name : Build release bundle
3630 id : build
3731 run : |
3832 pkg_dir="./package"
3933
40- bundle_output=$(./roc_nightly/ roc build --bundle .tar.br $pkg_dir/main.roc)
34+ bundle_output=$(roc build --bundle .tar.br $pkg_dir/main.roc)
4135
4236 bundle_path=$(echo "$bundle_output" | grep -o "$pkg_dir/.*\.tar\.br")
4337
Original file line number Diff line number Diff line change @@ -20,21 +20,15 @@ jobs:
2020 - name : Check out the repository
2121 uses : actions/checkout@v4
2222
23- - name : Downloading latest roc nightly
24- run : |
25- curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
26-
27- - name : prep nightly tar for use
28- run : |
29- mv $(ls | grep "roc_nightly.*tar\.gz") roc_nightly.tar.gz
30- tar -xzf roc_nightly.tar.gz
31- rm roc_nightly.tar.gz
32- mv roc_nightly* roc_nightly
23+ - uses : roc-lang/setup-roc@39c354a6a838a0089eea9068a0414f49b62c5c08
24+ with :
25+ # Note: nightly hashes are not verified because they are updated regularly.
26+ version : nightly
3327
34- - run : ./roc_nightly/ roc version
28+ - run : roc version
3529
3630 - name : Generate docs
37- run : ./roc_nightly/ roc docs package/main.roc
31+ run : roc docs package/main.roc
3832
3933 - name : Fix absolute paths
4034 run : |
Original file line number Diff line number Diff line change @@ -16,23 +16,17 @@ jobs:
1616 steps :
1717 - uses : actions/checkout@v4
1818
19- - name : Downloading latest roc nightly
20- run : |
21- curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
19+ - uses : roc-lang/setup-roc@39c354a6a838a0089eea9068a0414f49b62c5c08
20+ with :
21+ # Note: nightly hashes are not verified because they are updated regularly.
22+ version : nightly
2223
23- - name : prep nightly tar for use
24- run : |
25- mv $(ls | grep "roc_nightly.*tar\.gz") roc_nightly.tar.gz
26- tar -xzf roc_nightly.tar.gz
27- rm roc_nightly.tar.gz
28- mv roc_nightly* roc_nightly
29-
30- - run : ./roc_nightly/roc version
24+ - run : roc version
3125
3226 # expect for testing
3327 - run : sudo apt install -y expect
3428
3529 - run : expect -v
3630
3731 # Run all tests
38- - run : ROC=./roc_nightly/ roc ./ci/all_tests.sh
32+ - run : ROC=roc ./ci/all_tests.sh
You can’t perform that action at this time.
0 commit comments