Skip to content

Commit

Permalink
CI: add a GHA for doing a basic build test
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Jan 19, 2023
1 parent 6762cc4 commit 7f50d45
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
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/

0 comments on commit 7f50d45

Please sign in to comment.