forked from Alexpux/Cygwin
-
Notifications
You must be signed in to change notification settings - Fork 33
36 lines (29 loc) · 883 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: setup-msys2
uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
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
- name: Build
shell: msys2 {0}
run: |
(cd winsup && ./autogen.sh)
./configure --disable-dependency-tracking
make -j8
- name: Install
shell: msys2 {0}
run: |
make DESTDIR="$(pwd)"/_dest install
- name: Upload
uses: actions/upload-artifact@v3
with:
name: install
path: _dest/