From eb119d7152edbda7724b98ebbd7be0f733a9e48c Mon Sep 17 00:00:00 2001 From: Folkert Date: Sun, 4 Dec 2022 21:27:38 +0100 Subject: [PATCH] try to run `cargo test` on a platform with nix + macos x86_64 --- .github/workflows/nix_macos_x86_64.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_x86_64.yml b/.github/workflows/nix_macos_x86_64.yml index 60e1e9228c..e6a06ed62d 100644 --- a/.github/workflows/nix_macos_x86_64.yml +++ b/.github/workflows/nix_macos_x86_64.yml @@ -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