put ui build in new job
Some checks failed
Cargo / check (push) Has been cancelled
Cargo / ui (push) Has started running
Cargo / test (push) Has been cancelled
Cargo / build (push) Has been cancelled

This commit is contained in:
2025-07-18 15:55:22 +01:00
parent d8908b4350
commit 77a3811414

View File

@ -14,22 +14,20 @@ jobs:
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-build-target
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-
- name: Build release project
uses: actions-rs/cargo@v1
with:
command: build
args: --release
check:
needs: build
runs-on: rust-latest
steps:
- name: Check out repository code
@ -38,22 +36,31 @@ jobs:
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-check-target-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-check-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-check-target
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -p nuchat --no-deps -- -Dwarnings -Wclippy::correctness -Wclippy::complexity -Wclippy::perf -Aclippy::missing_errors_doc -Aclippy::missing_panics_doc
ui:
runs-on: js-latest
steps:
- name: Debug
run: |
node --version
npm --version
- name: Build
run: make build
test:
needs: [build, ui]
runs-on: rust-latest
steps:
- name: Check out repository code
@ -62,22 +69,13 @@ jobs:
uses: actions/cache@v4
with:
path: |
$HOME/.cargo/registry
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-test-target-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-test-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-test-target
- name: Debug
run: |
node --version
npm --version
nvm install 24
nvm use 24
node --version
npm --version
- name: Build
run: make build
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-
- name: Run tests
uses: actions-rs/cargo@v1
with: