-
Notifications
You must be signed in to change notification settings - Fork 94
43 lines (42 loc) · 1.1 KB
/
windows-build.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
name: Windows build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
matrix:
include:
- {chain: mingw32, cc: gcc}
- {chain: mingw64, cc: gcc}
- {chain: clang64, cc: clang}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.chain}}
install: make pkgconf
pacboy: ${{matrix.cc}}:p
- name: Compile .exe
run: |
export backends=gdi
export BINARY=activate-windows-${{matrix.chain}}.exe
make
- name: Upload .exe
uses: actions/upload-artifact@v4
with:
name: activate-windows-${{matrix.chain}}
path: activate-windows-${{matrix.chain}}.exe
merge:
runs-on: ubuntu-latest
needs: build
steps:
- name: Merge *.exe
uses: actions/upload-artifact/merge@v4
with:
name: activate-windows.exe
pattern: activate-windows-*
delete-merged: true
compression-level: 9