File tree 4 files changed +56
-53
lines changed
4 files changed +56
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 18
18
[ -z " $ref " ] && repository=' https://github.com/samtools/htslib.git'
19
19
20
20
set -x
21
- git clone --recurse-submodules --shallow-submodules --depth=1 ${ref: +--branch=" $branch " } " $repository " " $localdir "
21
+ git clone --recurse-submodules --shallow-submodules --depth=2 ${ref: +--branch=" $branch " } " $repository " " $localdir "
22
22
23
23
# NB: "samtools" as the owner/organisation, not the repo name
24
24
if [ " x$owner " = " xsamtools" -a -z " $ref " -a " x$htslib_PR " != " x" ]
Original file line number Diff line number Diff line change 10
10
.git * export-ignore
11
11
.ci_helpers export-ignore
12
12
README.md export-ignore
13
+
14
+ # Prevent Windows cr-lf endings.
15
+ test /** - text
Original file line number Diff line number Diff line change
1
+ name : Windows/MinGW-W64 CI
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ build :
6
+ runs-on : windows-latest
7
+ steps :
8
+ - name : Checkout
9
+ uses : actions/checkout@v4
10
+ with :
11
+ ref : ${{ github.event.pull_request.head.sha }}
12
+ - name : Set up MSYS2 MinGW-W64
13
+ uses : msys2/setup-msys2@v2
14
+ with :
15
+ msystem : mingw64
16
+ update : false
17
+ install : >-
18
+ mingw-w64-x86_64-toolchain
19
+ mingw-w64-x86_64-autotools
20
+ mingw-w64-x86_64-curl
21
+ mingw-w64-x86_64-libdeflate
22
+ mingw-w64-x86_64-tools-git
23
+ mingw-w64-x86_64-zlib
24
+ mingw-w64-x86_64-bzip2
25
+ mingw-w64-x86_64-xz
26
+ - name : Clone htslib
27
+ shell : msys2 {0}
28
+ run : |
29
+ export PATH="$PATH:/mingw64/bin:/c/Program Files/Git/bin"
30
+ export MSYSTEM=MINGW64
31
+ htslib_pr=`git log -2 --format='%s' | sed -n 's/.*htslib#\([0-9]*\).*/\1/p'`
32
+ .ci_helpers/clone ${GITHUB_REPOSITORY_OWNER} htslib htslib ${GITHUB_HEAD_REF:-$GITHUB_REF_NAME} $htslib_pr
33
+ pushd .
34
+ cd htslib
35
+ autoreconf -i
36
+ popd
37
+ - name : Compile bcftools
38
+ shell : msys2 {0}
39
+ run : |
40
+ export PATH="$PATH:/mingw64/bin:/c/Program Files/Git/bin"
41
+ export MSYSTEM=MINGW64
42
+ autoheader
43
+ autoconf -Wno-syntax
44
+ ./configure --enable-werror
45
+ make -j4
46
+ - name : Check bcftools
47
+ shell : msys2 {0}
48
+ run : |
49
+ export PATH="$PATH:/mingw64/bin:/c/Program Files/Git/bin"
50
+ export MSYSTEM=MINGW64
51
+ make check
52
+
You can’t perform that action at this time.
0 commit comments