mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:25:44 +01:00
write a CI workflow for multiple OSes, that compile and test the code using the makefile.
This commit is contained in:
37
.github/workflows/ci.yaml
vendored
Normal file
37
.github/workflows/ci.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
compile-and-test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- ubuntu-24.04-arm
|
||||||
|
- windows-latest
|
||||||
|
- windows-11-arm
|
||||||
|
- macos-latest
|
||||||
|
runs-on: ${{matrix.os}}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
repository: ${{github.repository}}
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: "Linux: install deps"
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y libwayland-dev libxkbcommon-dev xorg-dev
|
||||||
|
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: lib/obj/
|
||||||
|
key: ${{runner.os}}-lib/obj-${{github.sha}}
|
||||||
|
restore-keys: ${{runner.os}}-lib/obj-
|
||||||
|
- run: make libs
|
||||||
|
- run: make all
|
||||||
|
- run: make test
|
||||||
Reference in New Issue
Block a user