diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml new file mode 100644 index 000000000..8fd9684bd --- /dev/null +++ b/.github/workflows/windows-build.yml @@ -0,0 +1,38 @@ +name: Windows/MinGW-W64 CI +on: [push, pull_request] + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up MSYS2 MinGW-W64 + uses: msys2/setup-msys2@v2 + with: + msystem: mingw64 + update: false + install: >- + git + autotools + gcc + zlib-devel + libbz2-devel + liblzma-devel + ncurses-devel + mingw-w64-x86_64-tools-git + - name: Compile htslib + shell: msys2 {0} + run: | + export PATH=$PATH:/mingw64/bin + export MSYSTEM=MINGW64 + autoreconf -i + ./configure + make -j32 + - name: Check Htslib + shell: msys2 {0} + run: | + export PATH=$PATH:/mingw64/bin + export MSYSTEM=MINGW64 + make check +