-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 954 Bytes
/
main.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
name: Continuous integration
on: [push]
jobs:
linux-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd src && make
- run: mkdir artifacts && cp src/*.h src/*.so artifacts/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ubuntu-artifacts
path: artifacts
windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: UCRT64
install: >-
curl
git
mingw-w64-ucrt-x86_64-toolchain
- uses: actions/checkout@v4
- run: cd src && make mingw
- run: mkdir artifacts && cp src/*.h src/*.dll artifacts/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: artifacts