Update CI for API testing

I like the part where he said "it's squashin' time" and squashed all
over the git history

Add xwayland to CI

Add libegl to CI

Add debug for test

Don't run regular test when debugging

Remove a dash

Ya know I'd love to get act working so I don't have to push these every time I want to work on workflows but it always hangs when installing apt dependencies

Add foot to CI

Truly a genius at work here, I know
This commit is contained in:
Ottatop 2024-03-06 18:59:15 -06:00
parent 6d83e34868
commit e3504038ee

View file

@ -22,7 +22,7 @@ jobs:
- name: Cache stuff
uses: Swatinem/rust-cache@v2
- name: Get dependencies
run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler
run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler xwayland libegl-dev
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
@ -44,7 +44,7 @@ jobs:
- name: Cache stuff
uses: Swatinem/rust-cache@v2
- name: Get dependencies
run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler
run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler xwayland libegl-dev foot
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
@ -52,7 +52,11 @@ jobs:
- name: Setup LuaRocks
uses: leafo/gh-actions-luarocks@v4
- name: Build
if: ${{ runner.debug != '1' }}
run: cargo test
- name: Build (debug)
if: ${{ runner.debug == '1' }}
run: RUST_LOG=debug cargo test -- --nocapture
check-format:
runs-on: ubuntu-latest
name: Check formatting
@ -76,7 +80,7 @@ jobs:
with:
components: clippy
- name: Get dependencies
run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler
run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler xwayland libegl-dev
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with: