Compare commits

...

3 Commits

Author SHA1 Message Date
604b82216b build: Limit cargo test to pomomon-garden package
Some checks failed
Gitea CI / Run Tests (push) Failing after 6s
Gitea CI / Build Linux (push) Has been skipped
2025-12-21 00:07:25 +01:00
709e7bee2a fix: Run tests before build 2025-12-21 00:05:46 +01:00
5a5805d47f fix: Add libwayland-client-dev to CI dependencies 2025-12-21 00:04:13 +01:00

View File

@@ -5,8 +5,8 @@ on:
- 'main' - 'main'
- 'dev' - 'dev'
jobs: jobs:
build: test:
name: Build Linux name: Run Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: rust:slim image: rust:slim
@@ -14,7 +14,34 @@ jobs:
- name: Install System Dependencies - name: Install System Dependencies
run: | run: |
apt-get update -yq apt-get update -yq
apt-get install -yq git g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 nodejs apt-get install -yq git g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-client-dev nodejs
- name: Checkout
uses: actions/checkout@v4
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run Tests
run: cargo test --verbose --workspace --package pomomon-garden
build:
name: Build Linux
needs: test
runs-on: ubuntu-latest
container:
image: rust:slim
steps:
- name: Install System Dependencies
run: |
apt-get update -yq
apt-get install -yq git g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-client-dev nodejs
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Cache Cargo - name: Cache Cargo
@@ -40,29 +67,3 @@ jobs:
name: pomomon-garden-linux-x86_64-${{ steps.slug.outputs.sha8 }} name: pomomon-garden-linux-x86_64-${{ steps.slug.outputs.sha8 }}
path: target/x86_64-unknown-linux-gnu/release/pomomon-garden path: target/x86_64-unknown-linux-gnu/release/pomomon-garden
retention-days: 14 retention-days: 14
test:
name: Run Tests
runs-on: ubuntu-latest
container:
image: rust:slim
steps:
- name: Install System Dependencies
run: |
apt-get update -yq
apt-get install -yq git g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 nodejs
- name: Checkout
uses: actions/checkout@v4
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run Tests
run: cargo test --verbose