mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
crypto2 requires unstable simd and asm featurs, we have to build with nightly
This commit is contained in:
24
.github/workflows/build-and-test.yml
vendored
24
.github/workflows/build-and-test.yml
vendored
@@ -24,12 +24,14 @@ jobs:
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
- name: Build & Test (Default)
|
||||
run: cargo test --verbose --no-fail-fast
|
||||
run: cargo +nightly test --verbose --no-fail-fast
|
||||
- name: Build & Test (--no-default-feature)
|
||||
run: cargo test --verbose --no-default-feature --no-fail-fast
|
||||
run: cargo +nightly test --verbose --no-default-feature --no-fail-fast
|
||||
- name: Build with All Features Enabled
|
||||
run: cargo build --verbose --features "local-redir local-dns local-http-rustls dns-over-tls dns-over-https"
|
||||
run: cargo +nightly build --verbose --features "local-redir local-dns local-http-rustls dns-over-tls dns-over-https"
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
@@ -43,12 +45,14 @@ jobs:
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
- name: Build & Test (Default)
|
||||
run: cargo test --verbose --no-fail-fast
|
||||
run: cargo +nightly test --verbose --no-fail-fast
|
||||
- name: Build & Test (--no-default-feature)
|
||||
run: cargo test --verbose --no-default-feature --no-fail-fast
|
||||
run: cargo +nightly test --verbose --no-default-feature --no-fail-fast
|
||||
- name: Build with All Features Enabled
|
||||
run: cargo build --verbose --features "local-dns local-http-rustls dns-over-tls dns-over-https"
|
||||
run: cargo +nightly build --verbose --features "local-dns local-http-rustls dns-over-tls dns-over-https"
|
||||
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
@@ -67,9 +71,11 @@ jobs:
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
- name: Build & Test (Default)
|
||||
run: cargo test --verbose --no-fail-fast
|
||||
run: cargo +nightly test --verbose --no-fail-fast
|
||||
- name: Build & Test (--no-default-feature)
|
||||
run: cargo test --verbose --no-default-feature --no-fail-fast
|
||||
run: cargo +nightly test --verbose --no-default-feature --no-fail-fast
|
||||
- name: Build with All Features Enabled
|
||||
run: cargo build --verbose --features "local-redir local-dns local-http-rustls dns-over-tls dns-over-https"
|
||||
run: cargo +nightly build --verbose --features "local-redir local-dns local-http-rustls dns-over-tls dns-over-https"
|
||||
|
||||
14
.github/workflows/build-release.yml
vendored
14
.github/workflows/build-release.yml
vendored
@@ -47,8 +47,7 @@ jobs:
|
||||
build-unix:
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
BUILD_EXTRA_FEATURES: "openssl-vendored local-redir"
|
||||
RUSTFLAGS: "-Ctarget-feature=+aes,+ssse3"
|
||||
BUILD_EXTRA_FEATURES: "local-redir"
|
||||
strategy:
|
||||
matrix:
|
||||
# os: [ubuntu-latest, macos-latest]
|
||||
@@ -63,6 +62,9 @@ jobs:
|
||||
# echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
|
||||
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
|
||||
- name: Build release
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -80,13 +82,13 @@ jobs:
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
RUSTFLAGS: "-Ctarget-feature=+aes,+ssse3,+crt-static"
|
||||
# env:
|
||||
# OPENSSL_STATIC: "1"
|
||||
# OPENSSL_DIR: "C:\\Program Files\\OpenSSL-Win64\\"
|
||||
RUSTFLAGS: "-Ctarget-feature=+crt-static"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust nightly
|
||||
run: rustup toolchain install nightly
|
||||
|
||||
- name: Build release
|
||||
run: |
|
||||
cd build
|
||||
|
||||
Reference in New Issue
Block a user