From a00e6f869667251cb015cae12de7e9d70dbef88c Mon Sep 17 00:00:00 2001 From: Nahor Date: Mon, 6 Oct 2025 12:03:26 -0700 Subject: [PATCH] Add Github action to compile for MSYS2 Closes #11907 --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4927ad005..4a0b645b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -174,3 +174,30 @@ jobs: - name: make fish_run_tests run: | make -C build VERBOSE=1 fish_run_tests + + windows: + + runs-on: windows-latest + + defaults: + run: + shell: msys2 {0} + steps: + - uses: actions/checkout@v4 + - uses: msys2/setup-msys2@v2 + with: + update: true + msystem: MSYS + - name: Install deps + # Not using setup-msys2 `install` option to make it easier to copy/paste + run: | + pacman --noconfirm -S --needed git rust + - name: cargo build + run: | + cargo build + - name: smoketest + # We can't use `cargo test` yet, there are just too many failures + # so this is just a quick check to make sure that fish can swim + run: | + set -x + [ "$(target/debug/fish.exe -c 'echo (math 1 + 1)')" = 2 ]