From 944ed018da107aaa34f15fb92655b15984d30f2c Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 19 Jul 2024 17:31:24 +0900 Subject: [PATCH] run tests on wine (fails currently) --- .github/workflows/automation.yml | 9 +++++++++ flake.nix | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index 54a70a3..220d06e 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -30,3 +30,12 @@ jobs: - run: | nix run .#test nix run .#readme + windows-test: + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - run: | + nix run .#wine_test diff --git a/flake.nix b/flake.nix index 3f853dd..fa20253 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,11 @@ fi ''; + # nix run .#test_wine + apps.test_wine = with env.pkgs; env.app [ wineWowPackages.full ] '' + WINEDEBUG=-all zig build test -Dtarget=x86_64-windows -fwine + ''; + # nix run .#docs apps.docs = env.app [] "zig build docs -- \"$@\"";