From 7294dd93c96fa4b1b405bc3390407e618e0e0eac Mon Sep 17 00:00:00 2001 From: Almaju Date: Sat, 16 Nov 2024 15:20:19 +0100 Subject: [PATCH] workflows --- .github/workflows/publish.yaml | 4 +--- .github/workflows/test.yaml | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e93b9f9..5810129 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -43,9 +43,7 @@ jobs: if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above. run: | sudo apt-get update - sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2. - # You can remove the one that doesn't apply to your app to speed up the workflow a bit. + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - name: install frontend dependencies run: yarn install # change this to npm, pnpm or bun depending on which one you use. diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ec5f0b7..90bd471 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,32 +6,40 @@ on: pull_request: jobs: + setup: + name: install dependencies (ubuntu only) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: sudo apt-get update + - run: sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + check: name: Check runs-on: ubuntu-latest + needs: setup steps: - - uses: actions/checkout@v2 - run: cargo check test: name: Test Suite runs-on: ubuntu-latest + needs: setup steps: - - uses: actions/checkout@v2 - run: cargo test fmt: name: Rustfmt runs-on: ubuntu-latest + needs: setup steps: - - uses: actions/checkout@v2 - run: rustup component add rustfmt - run: cargo fmt --all -- --check clippy: name: Clippy runs-on: ubuntu-latest + needs: setup steps: - - uses: actions/checkout@v2 - run: rustup component add clippy - run: cargo clippy -- -D warnings