-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (43 loc) · 1.16 KB
/
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
39
40
41
42
43
44
name: Continuous integration
on: [push]
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cd src
make
zip -r non-layered-tidy-trees-ubuntu.zip *.h *.so
- name: Upload release assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create r${{github.run_number}} src/non-layered-tidy-trees-ubuntu.zip
windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: UCRT64
install: >-
curl
git
zip
mingw-w64-ucrt-x86_64-toolchain
- uses: actions/checkout@v4
- name: Build
shell: msys2 {0}
run: |
cd src
mingw32-make mingw
zip -r non-layered-tidy-trees-win-ucrt64.zip *.h *.dll
- name: Upload release assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: cmd
run: gh release upload r${{github.run_number}} src/non-layered-tidy-trees-win-ucrt64.zip