-
Notifications
You must be signed in to change notification settings - Fork 62
56 lines (52 loc) · 1.16 KB
/
ccpp.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
name: C/C++ CI
on: [push]
jobs:
build-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: apt
run: sudo apt update && sudo apt install bison flex ninja-build lua5.3
- name: make
run: make
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: brew
run: brew install ninja [email protected]
- name: make
run: |
make
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: UCRT64
install: >-
make
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-lua
mingw-w64-ucrt-x86_64-nsis
ninja
bison
flex
zip
git
- uses: actions/checkout@v3
- name: build
run: |
make LDFLAGS="-s -static" CFLAGS=-Os
- name: package
run: |
make ack-setup.exe
- name: upload setup
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}.${{ github.sha }}
path: ack-setup.exe