Skip to content

Commit 1abe2c2

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

1 file changed

Lines changed: 83 additions & 83 deletions

File tree

.github/workflows/rust.yml

Lines changed: 83 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
@@ -69,7 +69,6 @@ jobs:
6969
# token: ${{ secrets.GITHUB_TOKEN }}
7070
# args: --all-targets --all-features -- -D warnings
7171

72-
7372
features:
7473
name: Check features and unused dependencies
7574
runs-on: ubuntu-latest
@@ -80,8 +79,8 @@ jobs:
8079
- uses: taiki-e/install-action@cargo-udeps
8180
- uses: Swatinem/rust-cache@v2
8281
- 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
82+
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features core
83+
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features replication
8584
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features remote
8685

8786
test:
@@ -90,45 +89,46 @@ jobs:
9089
env:
9190
RUSTFLAGS: -D warnings --cfg tokio_unstable
9291
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
92+
- uses: hecrj/setup-rust-action@v2
93+
94+
# needed because we run out of disk space during tests
95+
- name: Free Disk Space (Ubuntu)
96+
uses: jlumbroso/free-disk-space@main
97+
with:
98+
# this might remove tools that are actually needed,
99+
# when set to "true" but frees about 6 GB
100+
tool-cache: true
101+
102+
- name: Install deps
103+
run: sudo apt update && sudo apt install -y libclang-dev
104+
105+
- name: Install protoc
106+
uses: taiki-e/install-action@v2
107+
with:
108+
tool: protoc@${{ env.PROTOC_VERSION }}
109+
110+
- uses: taiki-e/install-action@v2
111+
with:
112+
tool: nextest
113+
rust-version: 1.82.0
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
132132
# test-custom-pager:
133133
# runs-on: ubuntu-latest
134134
# name: Run Tests
@@ -181,44 +181,44 @@ jobs:
181181
env:
182182
RUSTFLAGS: -D warnings --cfg tokio_unstable
183183
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
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
222222
windows:
223223
runs-on: windows-latest
224224
name: Windows checks
@@ -241,7 +241,7 @@ jobs:
241241
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
242242
restore-keys: ${{ runner.os }}-cargo-
243243
- name: build libsql all features
244-
run: cargo build -p libsql --all-features
244+
run: cargo build -p libsql --all-features
245245

246246
# test-rust-wasm:
247247
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)