-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add windows build via github Actions
Also fix freebsd to be up to date as it broke CI.
- Loading branch information
1 parent
5a2627e
commit 07f2854
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||