mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 10:09:17 +08:00
users other actions to install nightly
This commit is contained in:
33
.github/workflows/build-and-test.yml
vendored
33
.github/workflows/build-and-test.yml
vendored
@@ -25,13 +25,16 @@ jobs:
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
- name: Build & Test (Default)
|
||||
run: cargo +nightly test --verbose --no-fail-fast
|
||||
run: cargo test --verbose --no-fail-fast
|
||||
- name: Build & Test (--no-default-features)
|
||||
run: cargo +nightly test --verbose --no-default-features --no-fail-fast
|
||||
run: cargo test --verbose --no-default-features --no-fail-fast
|
||||
- name: Build with All Features Enabled
|
||||
run: cargo +nightly build --verbose --features "local-redir local-dns dns-over-tls"
|
||||
run: cargo build --verbose --features "local-redir local-dns dns-over-tls"
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
@@ -46,13 +49,16 @@ jobs:
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
- name: Build & Test (Default)
|
||||
run: cargo +nightly test --verbose --no-fail-fast
|
||||
run: cargo test --verbose --no-fail-fast
|
||||
- name: Build & Test (--no-default-features)
|
||||
run: cargo +nightly test --verbose --no-default-features --no-fail-fast
|
||||
run: cargo test --verbose --no-default-features --no-fail-fast
|
||||
- name: Build with All Features Enabled
|
||||
run: cargo +nightly build --verbose --features "local-dns dns-over-tls"
|
||||
run: cargo build --verbose --features "local-dns dns-over-tls"
|
||||
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
@@ -72,10 +78,13 @@ jobs:
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
- name: Build & Test (Default)
|
||||
run: cargo +nightly test --verbose --no-fail-fast
|
||||
run: cargo test --verbose --no-fail-fast
|
||||
- name: Build & Test (--no-default-features)
|
||||
run: cargo +nightly test --verbose --no-default-features --no-fail-fast
|
||||
run: cargo test --verbose --no-default-features --no-fail-fast
|
||||
- name: Build with All Features Enabled
|
||||
run: cargo +nightly build --verbose --features "local-redir local-dns dns-over-tls"
|
||||
run: cargo build --verbose --features "local-redir local-dns dns-over-tls"
|
||||
|
||||
10
.github/workflows/build-release.yml
vendored
10
.github/workflows/build-release.yml
vendored
@@ -62,7 +62,10 @@ jobs:
|
||||
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
|
||||
- name: Build release
|
||||
shell: bash
|
||||
@@ -86,7 +89,10 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
|
||||
- name: Build release
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user