Skip to content

Commit 61bbe12

Browse files
committed
chore: github action ensuring MSRV
1 parent 1ed120a commit 61bbe12

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/workflows/build-and-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
run: cargo test --manifest-path ./crates/shadowsocks/Cargo.toml --verbose --no-default-features --no-fail-fast
4040
- name: Build with All Features Enabled (Unix)
4141
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
42-
run: cargo build --verbose --features "local-http-rustls local-redir local-dns local-tun dns-over-tls dns-over-https stream-cipher aead-cipher-2022"
42+
run: cargo build --verbose --features "local-http-rustls local-redir local-dns local-tun dns-over-tls dns-over-https stream-cipher aead-cipher-extra aead-cipher-2022 aead-cipher-2022-extra security-replay-attack-detect"
4343
- name: Build with All Features Enabled (Windows)
4444
if: ${{ runner.os == 'Windows' }}
45-
run: cargo build --verbose --features "local-http-rustls local-dns dns-over-tls dns-over-https stream-cipher aead-cipher-2022"
45+
run: cargo build --verbose --features "local-http-rustls local-dns dns-over-tls dns-over-https stream-cipher aead-cipher-extra aead-cipher-2022 aead-cipher-2022-extra security-replay-attack-detect"
4646
- name: Build with All Features Enabled - shadowsocks
4747
run: cargo build --manifest-path ./crates/shadowsocks/Cargo.toml --verbose --features "stream-cipher aead-cipher-2022"

.github/workflows/build-msrv.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build MSRV
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
RUST_LOG: "trace"
12+
13+
jobs:
14+
buid-test-check:
15+
strategy:
16+
matrix:
17+
platform:
18+
- ubuntu-latest
19+
- windows-latest
20+
- macos-latest
21+
runs-on: ${{ matrix.platform }}
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: Swatinem/rust-cache@v2
26+
- name: Install Rust
27+
run: |
28+
rustup set profile minimal
29+
rustup toolchain install 1.64
30+
rustup default 1.64
31+
rustup override set 1.64
32+
- name: Build with All Features Enabled (Unix)
33+
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
34+
run: cargo build --verbose --features "local-http-rustls local-redir local-dns local-tun dns-over-tls dns-over-https stream-cipher aead-cipher-extra aead-cipher-2022 aead-cipher-2022-extra security-replay-attack-detect"
35+
- name: Build with All Features Enabled (Windows)
36+
if: ${{ runner.os == 'Windows' }}
37+
run: cargo build --verbose --features "local-http-rustls local-dns dns-over-tls dns-over-https stream-cipher aead-cipher-extra aead-cipher-2022 aead-cipher-2022-extra security-replay-attack-detect"

0 commit comments

Comments
 (0)