mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
name: C/C++ CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
- name: apt
|
|
run: sudo apt update && sudo apt install lua5.3 lua-posix libudev-dev libsqlite3-dev ninja-build protobuf-compiler libwxgtk3.0-gtk3-dev libfmt-dev
|
|
- name: make
|
|
run: make
|
|
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
- name: brew
|
|
run: brew install sqlite pkg-config libusb lua ninja protobuf truncate wxwidgets fmt
|
|
- 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: MINGW32
|
|
install: >-
|
|
diffutils
|
|
make
|
|
mingw-w64-i686-fmt
|
|
mingw-w64-i686-gcc
|
|
mingw-w64-i686-libusb
|
|
mingw-w64-i686-lua
|
|
mingw-w64-i686-pkg-config
|
|
mingw-w64-i686-protobuf
|
|
mingw-w64-i686-sqlite3
|
|
mingw-w64-i686-wxWidgets
|
|
mingw-w64-i686-zlib
|
|
ninja
|
|
zip
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
- name: build
|
|
run: |
|
|
make
|
|
|
|
- name: zip
|
|
run: |
|
|
zip -9 fluxengine.zip fluxengine.exe fluxengine-gui.exe upgrade-flux-file.exe brother120tool.exe brother240tool.exe FluxEngine.cydsn/CortexM3/ARM_GCC_541/Release/FluxEngine.hex
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ github.event.repository.name }}.${{ github.sha }}
|
|
path: fluxengine.zip
|