Skip to content

Commit

Permalink
Revert "Merge branch 'master' into smart-guess-update-self"
Browse files Browse the repository at this point in the history
This reverts commit c13ad31, reversing
changes made to fb6a559.
  • Loading branch information
Xerxes-2 committed Jun 25, 2024
1 parent c13ad31 commit 9844106
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 186 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1286,17 +1286,14 @@ jobs:
# nor run on the rust docker images. This permits a smaller workflow without the
# templating and so on.
build-all-features: # job-name
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }}
strategy:
fail-fast: false
matrix:
include:
# Might add more targets in future.
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
# Might add more targets in future.
target:
- x86_64-unknown-linux-gnu
steps:
- name: Clone repo
uses: actions/checkout@v4
Expand All @@ -1307,17 +1304,7 @@ jobs:
with:
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install OpenSSL
if: ${{ contains(matrix.os, 'windows') }}
run: |
choco install openssl -y --no-progress
Get-Command openssl
openssl version
echo "OPENSSL_LIB_DIR=C:/Program Files/OpenSSL/lib" >> $env:GITHUB_ENV
echo "OPENSSL_DIR=C:/Program Files/OpenSSL/" >> $env:GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=C:/Program Files/OpenSSL/include" >> $env:GITHUB_ENV
- name: Set environment variables appropriately for the build
shell: bash
run: |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
echo "TARGET=${{ matrix.target }}" >> $GITHUB_ENV
Expand All @@ -1327,7 +1314,7 @@ jobs:
run: cargo install cargo-all-features --git https://github.com/rbtcollins/cargo-all-features.git
- name: Ensure we have our goal target installed
run: |
rustup target install ${{ matrix.target }}
rustup target install "$TARGET"
- name: Build every combination
env:
RUSTFLAGS: -D warnings
Expand Down
122 changes: 11 additions & 111 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 5 additions & 18 deletions ci/actions-templates/all-features-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ jobs: # skip-all
# nor run on the rust docker images. This permits a smaller workflow without the
# templating and so on.
build-all-features: # job-name
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }}
strategy:
fail-fast: false
matrix:
include:
# Might add more targets in future.
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
# Might add more targets in future.
target:
- x86_64-unknown-linux-gnu
steps:
- name: Clone repo
uses: actions/checkout@v4
Expand All @@ -29,17 +26,7 @@ jobs: # skip-all
with:
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install OpenSSL
if: ${{ contains(matrix.os, 'windows') }}
run: |
choco install openssl -y --no-progress
Get-Command openssl
openssl version
echo "OPENSSL_LIB_DIR=C:/Program Files/OpenSSL/lib" >> $env:GITHUB_ENV
echo "OPENSSL_DIR=C:/Program Files/OpenSSL/" >> $env:GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=C:/Program Files/OpenSSL/include" >> $env:GITHUB_ENV
- name: Set environment variables appropriately for the build
shell: bash
run: |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
echo "TARGET=${{ matrix.target }}" >> $GITHUB_ENV
Expand All @@ -49,7 +36,7 @@ jobs: # skip-all
run: cargo install cargo-all-features --git https://github.com/rbtcollins/cargo-all-features.git
- name: Ensure we have our goal target installed
run: |
rustup target install ${{ matrix.target }}
rustup target install "$TARGET"
- name: Build every combination
env:
RUSTFLAGS: -D warnings
Expand Down
2 changes: 1 addition & 1 deletion ci/run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ build_test() {
if [ -z "$SKIP_TESTS" ]; then
target_cargo run --features test -- --dump-testament
build_test build
RUSTUP_CI=1 build_test test
build_test test
fi
9 changes: 1 addition & 8 deletions download/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,14 @@ default = ["reqwest-backend", "reqwest-rustls-tls", "reqwest-native-tls"]
curl-backend = ["curl"]
reqwest-backend = ["reqwest", "env_proxy"]
reqwest-native-tls = ["reqwest/native-tls", "dep:once_cell"]
reqwest-rustls-tls = [
"reqwest/rustls-tls-manual-roots-no-provider",
"dep:rustls",
"dep:rustls-platform-verifier",
"dep:once_cell",
]
reqwest-rustls-tls = ["reqwest/rustls-tls-native-roots", "dep:once_cell"]

[dependencies]
anyhow.workspace = true
curl = { version = "0.4.44", optional = true }
env_proxy = { version = "0.4.1", optional = true }
once_cell = { workspace = true, optional = true }
reqwest = { version = "0.12", default-features = false, features = ["blocking", "gzip", "socks", "stream"], optional = true }
rustls = { version = "0.23", optional = true, default-features = false, features = ["logging", "ring", "tls12"] }
rustls-platform-verifier = { version = "0.3", optional = true }
thiserror.workspace = true
tokio = { workspace = true, default-features = false, features = ["sync"] }
tokio-stream.workspace = true
Expand Down
Loading

0 comments on commit 9844106

Please sign in to comment.