crypto2 requires unstable simd and asm featurs, we have to build with nightly

This commit is contained in:
zonyitoo
2020-11-21 22:14:10 +08:00
parent 536a2d5799
commit a807cd307b
4 changed files with 26 additions and 18 deletions

View File

@@ -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"

View File

@@ -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