From e3504038eeb6db9c3701aca36265fd09dd65f356 Mon Sep 17 00:00:00 2001 From: Ottatop Date: Wed, 6 Mar 2024 18:59:15 -0600 Subject: [PATCH] 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 --- .github/workflows/ci.pinnacle.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.pinnacle.yml b/.github/workflows/ci.pinnacle.yml index 203abfa..847a871 100644 --- a/.github/workflows/ci.pinnacle.yml +++ b/.github/workflows/ci.pinnacle.yml @@ -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: