Compare commits

...

6 Commits

Author SHA1 Message Date
82bf4b6ced fix: Exclude target dir from CI cache to reduce size
Some checks failed
Gitea CI / Run Tests (push) Successful in 41m7s
Gitea CI / Build Linux (push) Failing after 10m19s
2025-12-21 01:00:31 +01:00
f21b74485e fix: Add libssl-dev to CI workflow to resolve openssl-sys build error
Some checks failed
Gitea CI / Build Linux (push) Has been cancelled
Gitea CI / Run Tests (push) Has been cancelled
2025-12-21 00:24:04 +01:00
e3b54f1a21 fix: Use correct package name libwayland-dev for CI
Some checks failed
Gitea CI / Run Tests (push) Failing after 10m8s
Gitea CI / Build Linux (push) Has been skipped
2025-12-21 00:08:11 +01:00
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'
- 'dev'
jobs:
build:
name: Build Linux
test:
name: Run Tests
runs-on: ubuntu-latest
container:
image: rust:slim
@@ -14,7 +14,33 @@ jobs:
- 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
apt-get install -yq git g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev nodejs libssl-dev
- 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/
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-dev nodejs libssl-dev
- name: Checkout
uses: actions/checkout@v4
- name: Cache Cargo
@@ -25,7 +51,6 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
@@ -39,30 +64,4 @@ jobs:
with:
name: pomomon-garden-linux-x86_64-${{ steps.slug.outputs.sha8 }}
path: target/x86_64-unknown-linux-gnu/release/pomomon-garden
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
retention-days: 14