Skip to content

Commit

Permalink
Add windows build via github Actions
Browse files Browse the repository at this point in the history
Also fix freebsd to be up to date as it broke CI.
  • Loading branch information
jkbonfield committed Jun 25, 2024
1 parent 5a2627e commit 07f2854
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ task:
task:
name: freebsd
freebsd_instance:
image_family: freebsd-13-2
image_family: freebsd-14-0

pkginstall_script:
- pkg update -f
Expand Down
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Github's git changes NL for NL-CR on Windows.
# We pretend everything is binary so any comparisons of test files
# work.
tests/* -text
43 changes: 43 additions & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Windows/MinGW-W64
#on: [push, pull_request]

on:
push:
- branches: *

pull_request:
- branches: *

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: >-
zlib-devel
libbz2-devel
liblzma-devel
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-autotools
mingw-w64-x86_64-tools-git
- name: Compile htscodecs
shell: msys2 {0}
run: |
export PATH=/mingw64/bin:$PATH
export MSYSTEM=MINGW64
autoreconf -i
./configure --disable-shared CFLAGS='-g -O3 -D_XOPEN_SOURCE=600 -Wno-char-subscripts'
make -j32
- name: Check htscodecs
shell: msys2 {0}
run: |
export PATH=/mingw64/bin:$PATH
export MSYSTEM=MINGW64
make check || cat tests/test-suite.log

0 comments on commit 07f2854

Please sign in to comment.