Skip to content

Commit 1452664

Browse files
committed
try increase rustc version ci
1 parent 0c3b93a commit 1452664

File tree

1 file changed

+89
-83
lines changed

1 file changed

+89
-83
lines changed

.github/workflows/rust.yml

Lines changed: 89 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
77
merge_group:
8-
branches: [ "main" ]
8+
branches: ["main"]
99

1010
env:
1111
CARGO_TERM_COLOR: always
@@ -26,6 +26,8 @@ jobs:
2626
RUSTFLAGS: -D warnings --cfg tokio_unstable
2727
steps:
2828
- uses: hecrj/setup-rust-action@v2
29+
with:
30+
rust-version: stable
2931

3032
- name: Checkout
3133
uses: actions/checkout@v3
@@ -69,7 +71,6 @@ jobs:
6971
# token: ${{ secrets.GITHUB_TOKEN }}
7072
# args: --all-targets --all-features -- -D warnings
7173

72-
7374
features:
7475
name: Check features and unused dependencies
7576
runs-on: ubuntu-latest
@@ -80,8 +81,8 @@ jobs:
8081
- uses: taiki-e/install-action@cargo-udeps
8182
- uses: Swatinem/rust-cache@v2
8283
- run: cargo +nightly hack udeps -p libsql --each-feature
83-
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features core
84-
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features replication
84+
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features core
85+
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features replication
8586
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features remote
8687

8788
test:
@@ -90,45 +91,48 @@ jobs:
9091
env:
9192
RUSTFLAGS: -D warnings --cfg tokio_unstable
9293
steps:
93-
- uses: hecrj/setup-rust-action@v2
94-
95-
# needed because we run out of disk space during tests
96-
- name: Free Disk Space (Ubuntu)
97-
uses: jlumbroso/free-disk-space@main
98-
with:
99-
# this might remove tools that are actually needed,
100-
# when set to "true" but frees about 6 GB
101-
tool-cache: true
102-
103-
- name: Install deps
104-
run: sudo apt update && sudo apt install -y libclang-dev
105-
106-
- name: Install protoc
107-
uses: taiki-e/install-action@v2
108-
with:
109-
tool: protoc@${{ env.PROTOC_VERSION }}
110-
111-
- uses: taiki-e/install-action@v2
112-
with:
113-
tool: nextest
114-
115-
- uses: actions/checkout@v3
116-
117-
- name: Set up cargo cache
118-
uses: actions/cache@v3
119-
continue-on-error: false
120-
with:
121-
path: |
122-
~/.cargo/bin/
123-
~/.cargo/registry/index/
124-
~/.cargo/registry/cache/
125-
~/.cargo/git/db/
126-
target/
127-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
128-
restore-keys: ${{ runner.os }}-cargo-
129-
130-
- name: Run tests
131-
run: cargo nextest run
94+
- uses: hecrj/setup-rust-action@v2
95+
with:
96+
rust-version: stable
97+
98+
# needed because we run out of disk space during tests
99+
- name: Free Disk Space (Ubuntu)
100+
uses: jlumbroso/free-disk-space@main
101+
with:
102+
# this might remove tools that are actually needed,
103+
# when set to "true" but frees about 6 GB
104+
tool-cache: true
105+
106+
- name: Install deps
107+
run: sudo apt update && sudo apt install -y libclang-dev
108+
109+
- name: Install protoc
110+
uses: taiki-e/install-action@v2
111+
with:
112+
tool: protoc@${{ env.PROTOC_VERSION }}
113+
114+
- uses: taiki-e/install-action@v2
115+
with:
116+
tool: nextest
117+
rust-version: stable
118+
119+
- uses: actions/checkout@v3
120+
121+
- name: Set up cargo cache
122+
uses: actions/cache@v3
123+
continue-on-error: false
124+
with:
125+
path: |
126+
~/.cargo/bin/
127+
~/.cargo/registry/index/
128+
~/.cargo/registry/cache/
129+
~/.cargo/git/db/
130+
target/
131+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
132+
restore-keys: ${{ runner.os }}-cargo-
133+
134+
- name: Run tests
135+
run: cargo nextest run
132136
# test-custom-pager:
133137
# runs-on: ubuntu-latest
134138
# name: Run Tests
@@ -181,44 +185,46 @@ jobs:
181185
env:
182186
RUSTFLAGS: -D warnings --cfg tokio_unstable
183187
steps:
184-
- uses: hecrj/setup-rust-action@v2
185-
186-
# needed because we run out of disk space during tests
187-
- name: Free Disk Space (Ubuntu)
188-
uses: jlumbroso/free-disk-space@main
189-
with:
190-
# this might remove tools that are actually needed,
191-
# when set to "true" but frees about 6 GB
192-
tool-cache: true
193-
194-
- name: Install deps
195-
run: sudo apt update && sudo apt install -y libclang-dev
196-
197-
- name: Install protoc
198-
uses: taiki-e/install-action@v2
199-
with:
200-
tool: protoc@${{ env.PROTOC_VERSION }}
201-
202-
- uses: taiki-e/install-action@v2
203-
with:
204-
tool: nextest
205-
206-
- uses: actions/checkout@v3
207-
208-
- name: Set up cargo cache
209-
uses: actions/cache@v3
210-
continue-on-error: false
211-
with:
212-
path: |
213-
~/.cargo/bin/
214-
~/.cargo/registry/index/
215-
~/.cargo/registry/cache/
216-
~/.cargo/git/db/
217-
target/
218-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
219-
restore-keys: ${{ runner.os }}-cargo-
220-
- name: embedded replica encryption tests
221-
run: cargo xtask test-encryption
188+
- uses: hecrj/setup-rust-action@v2
189+
with:
190+
rust-version: stable
191+
192+
# needed because we run out of disk space during tests
193+
- name: Free Disk Space (Ubuntu)
194+
uses: jlumbroso/free-disk-space@main
195+
with:
196+
# this might remove tools that are actually needed,
197+
# when set to "true" but frees about 6 GB
198+
tool-cache: true
199+
200+
- name: Install deps
201+
run: sudo apt update && sudo apt install -y libclang-dev
202+
203+
- name: Install protoc
204+
uses: taiki-e/install-action@v2
205+
with:
206+
tool: protoc@${{ env.PROTOC_VERSION }}
207+
208+
- uses: taiki-e/install-action@v2
209+
with:
210+
tool: nextest
211+
212+
- uses: actions/checkout@v3
213+
214+
- name: Set up cargo cache
215+
uses: actions/cache@v3
216+
continue-on-error: false
217+
with:
218+
path: |
219+
~/.cargo/bin/
220+
~/.cargo/registry/index/
221+
~/.cargo/registry/cache/
222+
~/.cargo/git/db/
223+
target/
224+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
225+
restore-keys: ${{ runner.os }}-cargo-
226+
- name: embedded replica encryption tests
227+
run: cargo xtask test-encryption
222228
windows:
223229
runs-on: windows-latest
224230
name: Windows checks
@@ -241,7 +247,7 @@ jobs:
241247
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
242248
restore-keys: ${{ runner.os }}-cargo-
243249
- name: build libsql all features
244-
run: cargo build -p libsql --all-features
250+
run: cargo build -p libsql --all-features
245251

246252
# test-rust-wasm:
247253
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)