Skip to content

Commit f3c0eae

Browse files
committed
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
1 parent 7386426 commit f3c0eae

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci-rust.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
env:
17-
NODE_OPTIONS: "--max_old_space_size=4096"
17+
NODE_OPTIONS: '--max_old_space_size=4096'
1818
VITEST_SEGFAULT_RETRY: 3
1919

2020
jobs:
2121
rust-tests:
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-20.04
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: Install dependencies
@@ -33,6 +33,7 @@ jobs:
3333
uses: swatinem/rust-cache@v2
3434
with:
3535
workspaces: './src-tauri -> target'
36+
cache-bin: false
3637
- name: Sync node version and setup cache
3738
uses: actions/setup-node@v3
3839
with:
@@ -44,7 +45,7 @@ jobs:
4445
working-directory: src-tauri
4546
run: cargo test
4647
rust-fmt:
47-
runs-on: ubuntu-latest
48+
runs-on: ubuntu-20.04
4849
steps:
4950
- uses: actions/checkout@v3
5051
- name: Install dependencies
@@ -63,7 +64,7 @@ jobs:
6364
working-directory: src-tauri
6465
run: cargo fmt --all --check
6566
rust-clippy:
66-
runs-on: ubuntu-latest
67+
runs-on: ubuntu-20.04
6768
steps:
6869
- uses: actions/checkout@v3
6970
- name: Install dependencies
@@ -77,6 +78,7 @@ jobs:
7778
uses: swatinem/rust-cache@v2
7879
with:
7980
workspaces: './src-tauri -> target'
81+
cache-bin: false
8082
- run: rustup component add clippy
8183
- name: Sync node version and setup cache
8284
uses: actions/setup-node@v3

rust-toolchain.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
channel = "1.74.1"

0 commit comments

Comments
 (0)