Compare commits
3 Commits
aaa2d582f0
...
604b82216b
| Author | SHA1 | Date | |
|---|---|---|---|
| 604b82216b | |||
| 709e7bee2a | |||
| 5a5805d47f |
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user