-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (37 loc) · 1.25 KB
/
mingw-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
44
45
46
name: Mingw Build
on: [ push, pull_request ]
jobs:
build_linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
build_platform: ["64", "32"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install packages via apt
run: |
sudo apt-get -qq update
sudo apt-get -qq install -y mingw-w64 cppcheck
(for alt in i686-w64-mingw32-g++ i686-w64-mingw32-gcc x86_64-w64-mingw32-g++ x86_64-w64-mingw32-gcc; do sudo update-alternatives --set $alt /usr/bin/$alt-posix; done);
- name: build x86
if: matrix.build_platform == '32'
run: make ARCH=i686-w64-mingw32
- name: build x64
if: matrix.build_platform == '64'
run: make ARCH=x86_64-w64-mingw32
- name: Archive artifacts for x86
if: matrix.build_platform == '32'
uses: actions/upload-artifact@v4
with:
name: nppsnippets_dll_linux_x32
path: NppSnippets.dll
- name: Archive artifacts for x64
if: matrix.build_platform == '64'
uses: actions/upload-artifact@v4
with:
name: nppsnippets_dll_linux_x64
path: NppSnippets.dll