Skip to content

Commit ed8ba5f

Browse files
committed
test musl
1 parent d051728 commit ed8ba5f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,18 @@ jobs:
4444

4545
# Run all tests
4646
- run: ROC=./roc_nightly/roc EXAMPLES_DIR=./examples/ ./ci/all_tests.sh
47+
48+
- name: Install dependencies for musl build
49+
run: |
50+
sudo apt-get install -y musl-tools
51+
rustup target add x86_64-unknown-linux-musl
52+
53+
- name: Test building with musl target
54+
run: CARGO_BUILD_TARGET=x86_64-unknown-linux-musl ./roc_nightly/roc build.roc --prebuilt-platform -- --roc ./roc_nightly/roc
55+
56+
- name: Test using musl build
57+
run: |
58+
# no need to build platform anymore
59+
sed -i '/build\.roc\|jump-start\.sh/d' ./ci/all_tests.sh
60+
ROC=./roc_nightly/roc EXAMPLES_DIR=./examples/ ./ci/all_tests.sh
4761
# TODO clippy, rustfmt, roc fmt check

0 commit comments

Comments
 (0)