ack/.github/workflows/ccpp.yml

57 lines
1.1 KiB
YAML
Raw Permalink Normal View History

name: C/C++ CI
on: [push]
jobs:
build-linux:
runs-on: ubuntu-20.04
steps:
2022-06-26 17:41:13 +00:00
- uses: actions/checkout@v3
- name: apt
2022-07-14 22:22:08 +00:00
run: sudo apt update && sudo apt install bison flex ninja-build lua5.3
- name: make
2022-07-14 22:15:33 +00:00
run: make
build-macos:
runs-on: macos-latest
steps:
2022-06-26 17:41:13 +00:00
- uses: actions/checkout@v3
- name: brew
2022-07-14 22:22:08 +00:00
run: brew install ninja lua@5.4
- name: make
2022-06-27 17:18:08 +00:00
run: |
2022-07-14 22:14:23 +00:00
make
2022-06-26 17:41:13 +00:00
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
2022-07-16 20:37:54 +00:00
msystem: MINGW32
2022-06-26 17:41:13 +00:00
install: >-
make
2022-07-16 20:37:54 +00:00
mingw-w64-i686-gcc
2022-07-14 22:22:08 +00:00
mingw-w64-i686-lua
mingw-w64-i686-nsis
2022-06-26 17:41:13 +00:00
ninja
bison
flex
zip
2022-06-27 17:29:50 +00:00
git
2022-06-26 17:41:13 +00:00
- 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