fix(ci): remove redundant validation and resolve Clippy warnings
This commit is contained in:
1 parent
51ea7fd69f
commit
1936d6c5d5
2 files changed
+4
-59
No files matched your search
@@ -60,58 +60,6 @@ jobs:
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
echo "tag=$release_tag" >> "$GITHUB_OUTPUT"
|
||||
|
||||
validate:
|
||||
name: Validate source
|
||||
needs: version
|
||||
if: github.event_name != 'release' || github.event.release.prerelease == true
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
ref: ${{ github.event_name == 'release' && github.event.release.tag_name || github.ref }}
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: 1.3.14
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy, rustfmt
|
||||
- name: Cache Bun packages
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ~/.bun/install/cache
|
||||
key: bun-${{ runner.os }}-${{ runner.arch }}-1.3.14-${{ hashFiles('bun.lock') }}
|
||||
restore-keys: |
|
||||
bun-${{ runner.os }}-${{ runner.arch }}-1.3.14-
|
||||
- name: Cache Rust dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: src-tauri -> target
|
||||
cache-on-failure: true
|
||||
- name: Apply release version
|
||||
run: node scripts/set-version.mjs "${{ needs.version.outputs.version }}"
|
||||
- name: Install Linux dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
||||
- name: Install frontend dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
- name: Validate desktop icons
|
||||
shell: bash
|
||||
run: |
|
||||
test -s src-tauri/icons/icon.png
|
||||
test -s src-tauri/icons/icon.ico
|
||||
test -s src-tauri/icons/icon.icns
|
||||
- name: Validate frontend
|
||||
run: |
|
||||
bun run check
|
||||
bun test
|
||||
- name: Validate Rust
|
||||
run: |
|
||||
cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
|
||||
cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings
|
||||
cargo test --manifest-path src-tauri/Cargo.toml
|
||||
|
||||
build:
|
||||
name: Build ${{ matrix.os }}-${{ matrix.arch }}
|
||||
needs: version
|
||||
@@ -152,8 +100,6 @@ jobs:
|
||||
suffix: zip
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
@@ -455,7 +401,6 @@ jobs:
|
||||
|| inputs.release_tag != ''
|
||||
needs:
|
||||
- version
|
||||
- validate
|
||||
- build
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 15
|
||||
|
||||
Reference in new issue
Block a user