Skip to content

Commit 74a2ef4

Browse files
lazkajeremyd2019
authored andcommitted
CI: add a GHA for doing a basic build test
Build with --disable-dependency-tracking because we only build once and this saves 3-4 minutes in CI.
1 parent 556e932 commit 74a2ef4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: setup-msys2
14+
uses: msys2/setup-msys2@v2
15+
with:
16+
msystem: MSYS
17+
update: true
18+
install: msys2-devel base-devel autotools cocom diffutils gcc gettext-devel libiconv-devel make mingw-w64-cross-crt mingw-w64-cross-gcc mingw-w64-cross-zlib perl zlib-devel xmlto docbook-xsl
19+
20+
- name: Build
21+
shell: msys2 {0}
22+
run: |
23+
(cd winsup && ./autogen.sh)
24+
./configure --disable-dependency-tracking --with-msys2-runtime-commit="$GITHUB_SHA"
25+
make -j8
26+
27+
- name: Install
28+
shell: msys2 {0}
29+
run: |
30+
make DESTDIR="$(pwd)"/_dest install
31+
32+
- name: Upload
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: install
36+
path: _dest/

0 commit comments

Comments
 (0)