From 9ed0fb812d1432e88bd48247e850504c1f33e97a Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Wed, 21 Dec 2022 12:27:28 +0000 Subject: [PATCH] Implement windows CI --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ff80d7a..474b9621 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -88,3 +88,25 @@ jobs: use-cross: true command: test args: --target armv7-unknown-linux-gnueabihf --manifest-path fitsio/Cargo.toml + + windows-test: + runs-on: windows-latest + steps: + - name: Checkout sources + uses: actions/checkout@v1 + + - name: Set up msys2 + uses: msys2/setup-msys2@v2 + + - name: Install dependencies + shell: msys2 {0} + run: | + pacman -S --noconfirm \ + mingw64/mingw-w64-x86_64-cfitsio \ + mingw64/mingw-w64-x86_64-pkg-config \ + mingw64/mingw-w64-x86_64-rust + + - name: Run the tests + shell: msys2 {0} + run: | + cargo test -p fitsio