-
Notifications
You must be signed in to change notification settings - Fork 40
87 lines (83 loc) · 2.27 KB
/
ZenLib_Checks.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Checks
on: [push, pull_request]
jobs:
Unix:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Dependencies
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install automake libtool
fi
- name: Configure
run: |
cd Project/GNU/Library
autoreconf -if
./configure
- name: Build
run: |
cd Project/GNU/Library
make
- name: Check
run: |
cd Project/GNU/Library
make check
- name: CMake Build
run: |
mkdir Project/CMake/Build
cd Project/CMake/Build
cmake -DBUILD_ZENLIB=1 ..
make
Windows:
runs-on: windows-latest
strategy:
matrix:
architecture: [ Win32, x64, ARM64 ]
fail-fast: false
steps:
- name: Checkout ZenLib
uses: actions/checkout@v4
with:
path: ZenLib
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
run: msbuild /p:Configuration=Release /p:Platform=${{ matrix.architecture }} ${{ github.workspace }}\ZenLib\Project\MSVC2022\ZenLib_MSVC.sln /verbosity:quiet /warnaserror
MinGW:
runs-on: windows-latest
strategy:
matrix:
include:
- platform: Win32
msystem: MINGW32
- platform: x64
msystem: MINGW64
fail-fast: false
env:
GENERATOR: "Unix Makefiles"
CONFIGURATION: "Release"
steps:
- name: Checkout ZenLib
uses: actions/checkout@v4
- name: Setup MSYS2 environment
uses: msys2/setup-msys2@v2
with:
release: false
msystem: ${{ matrix.msystem }}
install: make
- name: Configure CMake project
shell: bash
run: |
# Set the build configuration flag for CMake
cmake -S Project/CMake -B build -G "$GENERATOR" -DCMAKE_BUILD_TYPE=$CONFIGURATION
- name: Build project using make
shell: bash
run: make -C build -j