From f3c0eae1f7a4c61b86c113f5347158c49c477406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Dr=C3=B6schler?= Date: Thu, 6 Mar 2025 18:42:17 +0100 Subject: [PATCH] fix: workflows - pin rust toolchain to 1.74.1 - use ubuntu 20.04: consistency with release workflow and libwebkit2gtk-4.0-dev is not available in 24.04 --- .github/workflows/ci-rust.yml | 10 ++++++---- rust-toolchain.toml | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml index 0fbdf614..c35611db 100644 --- a/.github/workflows/ci-rust.yml +++ b/.github/workflows/ci-rust.yml @@ -14,12 +14,12 @@ concurrency: cancel-in-progress: true env: - NODE_OPTIONS: "--max_old_space_size=4096" + NODE_OPTIONS: '--max_old_space_size=4096' VITEST_SEGFAULT_RETRY: 3 jobs: rust-tests: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - name: Install dependencies @@ -33,6 +33,7 @@ jobs: uses: swatinem/rust-cache@v2 with: workspaces: './src-tauri -> target' + cache-bin: false - name: Sync node version and setup cache uses: actions/setup-node@v3 with: @@ -44,7 +45,7 @@ jobs: working-directory: src-tauri run: cargo test rust-fmt: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - name: Install dependencies @@ -63,7 +64,7 @@ jobs: working-directory: src-tauri run: cargo fmt --all --check rust-clippy: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - name: Install dependencies @@ -77,6 +78,7 @@ jobs: uses: swatinem/rust-cache@v2 with: workspaces: './src-tauri -> target' + cache-bin: false - run: rustup component add clippy - name: Sync node version and setup cache uses: actions/setup-node@v3 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..1ac7d022 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.74.1" \ No newline at end of file