Skip to content

Commit 0002703

Browse files
update basic-cli and parser deps
1 parent 03fb5d1 commit 0002703

File tree

6 files changed

+20
-12
lines changed

6 files changed

+20
-12
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
- run: expect -v
3838

3939
# Run all tests
40-
- run: ./ci/all_tests.sh
40+
- run: ROC=./roc_nightly/roc ./ci/all_tests.sh

ci/all_tests.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,45 @@
33
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
44
set -euxo pipefail
55

6-
roc='./roc_nightly/roc'
6+
if [ -z "${ROC}" ]; then
7+
echo "ERROR: The ROC environment variable is not set.
8+
Set it to something like:
9+
/home/username/Downloads/roc_nightly-linux_x86_64-2023-10-30-cb00cfb/roc
10+
or
11+
/home/username/gitrepos/roc/target/build/release/roc" >&2
12+
13+
exit 1
14+
fi
715

816
examples_dir='./examples/'
917
package_dir='./package/'
1018

1119
# roc check
1220
echo "Checking examples files..."
1321
for roc_file in $examples_dir*.roc; do
14-
$roc check $roc_file
22+
$ROC check $roc_file
1523
done
1624

1725
# roc build
1826
echo "Checking examples builds..."
1927
for roc_file in $examples_dir*.roc; do
20-
$roc build $roc_file --linker=legacy
28+
$ROC build $roc_file --linker=legacy
2129
done
2230

2331
# roc check
2432
echo "Checking package files..."
2533
for roc_file in $package_dir*.roc; do
26-
$roc check $roc_file
34+
$ROC check $roc_file
2735
done
2836

2937
# roc test
3038
echo "Running test for package... (only files containing expect)"
3139
for roc_file in $package_dir*.roc; do
3240
if grep -q '^expect' "$roc_file" >/dev/null; then
3341
echo "Running tests for $roc_file"
34-
$roc test $roc_file
42+
$ROC test $roc_file
3543
fi
3644
done
3745

3846
# test building docs website
39-
$roc docs package/main.roc
47+
$ROC docs package/main.roc

examples/simple.roc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
app "example"
22
packages {
3-
cli: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br",
3+
cli: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br",
44
unicode: "../package/main.roc", # use release URL (ends in tar.br) for local example, see github.com/roc/unicode/releases
55
}
66
imports [

package/GraphemeTestGen.roc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## parse it and then generate the individual tests.
55
app "gen"
66
packages {
7-
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br",
8-
parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.3.0/-e3ebWWmlFPfe9fYrr2z1urfslzygbtQQsl69iH1qzQ.tar.br",
7+
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br",
8+
parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.5.2/9VrPjwfQQ1QeSL3CfmWr2Pr9DESdDIXy97pwpuq84Ck.tar.br",
99
}
1010
imports [
1111
pf.Stdout,

package/InternalEmojiGen.roc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## parse it and then generate the implementation for each of the Emoji properties.
55
app "gen"
66
packages {
7-
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br",
7+
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br",
88
}
99
imports [
1010
pf.Stdout,

package/InternalGBPGen.roc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## parse it and then generate the implementation for each of the GBP properties.
55
app "gen"
66
packages {
7-
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br",
7+
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br",
88
}
99
imports [
1010
pf.Stdout,

0 commit comments

Comments
 (0)