From b0c5618633c4c53dd05a7083ca1b688f905dd76b Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Wed, 24 Apr 2024 02:07:35 -0300 Subject: [PATCH] ci: test nix build on windows (not run) --- .github/workflows/ci.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6dae72711..55174260b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -253,15 +253,22 @@ jobs: - name: Test project generation (Nix) env: TEMP_PROJECT_DIR: ${{ runner.temp }} + CAN_RUN_NIX: ${{ matrix.supports-nix }} run: | # Create project in temp dir to avoid Git interference cd "${TEMP_PROJECT_DIR}" glistix new nix_lib_project cd nix_lib_project - glistix run - glistix test - glistix run --target nix - glistix test --target nix + if [ "$CAN_RUN_NIX" = "true" ]; then + glistix run + glistix test + glistix run --target nix + glistix test --target nix + else + # Should at least build on Windows + glistix build + glistix build --target nix + fi glistix docs build # Assert that module metadata has been written @@ -292,7 +299,7 @@ jobs: ls build/dev/docs/nix_lib_project/fonts/ubuntu-mono-v15-regular-greek.woff2 ls build/dev/docs/nix_lib_project/fonts/ubuntu-mono-v15-regular-latin-ext.woff2 ls build/dev/docs/nix_lib_project/fonts/ubuntu-mono-v15-regular-latin.woff2 - if: ${{ matrix.run-integration-tests && matrix.supports-nix }} + if: ${{ matrix.run-integration-tests }} test-wasm: runs-on: ubuntu-latest