Skip to content

Windows builds via GitHub Actions #1796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -24,3 +24,14 @@ test/index_dos.sam -text
# Remove the text attribute from various faidx test files
test/faidx/faidx*.fa* -text
test/faidx/fastqs*.fq* -text
test/fastq/*.fa -text
test/fastq/*.fq -text
*.tst -text
*.out -text
*.crai -text
*.bai -text
*.csi -text
*.gzi -text
*.bcf -text
*.sam -text
*.sam.gz -text
40 changes: 40 additions & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Windows/MinGW-W64 CI
on: [push, pull_request]

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Set up MSYS2 MinGW-W64
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: false
install: >-
git
zlib-devel
libbz2-devel
liblzma-devel
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-autotools
mingw-w64-x86_64-tools-git
mingw-w64-x86_64-libdeflate
- name: Compile htslib
shell: msys2 {0}
run: |
export PATH=/mingw64/bin:$PATH
export MSYSTEM=MINGW64
autoreconf -i
./configure
make -j6
- name: Check Htslib
shell: msys2 {0}
run: |
export PATH=/mingw64/bin:$PATH
export MSYSTEM=MINGW64
make test-shlib-exports && make check

2 changes: 1 addition & 1 deletion htscodecs
1 change: 1 addition & 0 deletions test/header_syms.pl
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ sub extract_symbols {

open(my $f, '<', $file) || die "Couldn't open $file : $!\n";
my $text = <$f>;
$text =~ tr/\r//d;
close($f) || die "Error reading $file : $!\n";

# Get rid of comments