try to run cargo test on a platform with nix + macos x86_64

This commit is contained in:
Folkert 2022-12-04 21:27:38 +01:00
parent c1d3580b0f
commit eb119d7152
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C

View File

@ -22,10 +22,16 @@ jobs:
- uses: cachix/install-nix-action@v15
# to cache nix packages
- uses: cachix/cachix-action@v10
- uses: cachix/cachix-action@v10
with:
name: enigmaticsunrise
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: make a libapp.so
run: nix develop -c cargo run -- gen-stub-lib examples/platform-switching/rocLovesRust.roc
- name: check that the platform`s produced dylib is loadable
run: cd examples/platform-switching/rust-platform && nix develop -c cargo test test --release --locked
- name: execute cli_run tests only, the full tests take too long but are run nightly
run: nix develop -c cargo test --locked --release -p roc_cli