Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 1 addition & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,34 +43,12 @@ jobs:
- os: ubuntu-latest
install: |
sudo apt install -y libssl-dev
- os: windows-latest
install: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v7

- name: Configure vcpkg binary cache
if: runner.os == 'Windows'
shell: bash
run: |
cache_dir="${{ runner.temp }}/vcpkg-binary-cache"
mkdir -p "$cache_dir"
echo "VCPKG_DEFAULT_BINARY_CACHE=$cache_dir" >> "$GITHUB_ENV"
echo "VCPKG_BINARY_SOURCES=clear;files,$cache_dir,readwrite" >> "$GITHUB_ENV"

- name: Cache vcpkg binaries
uses: actions/cache@v6
if: runner.os == 'Windows'
with:
path: ${{ runner.temp }}/vcpkg-binary-cache
key: ${{ runner.os }}-vcpkg-${{ matrix.rust }}-${{ hashFiles('.github/workflows/ci.yaml') }}
restore-keys: |
${{ runner.os }}-vcpkg-${{ matrix.rust }}-

- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.rust }}
Expand All @@ -85,6 +63,7 @@ jobs:
rustup toolchain install ${{ matrix.rust }} --component clippy

- name: Install dependencies
if: matrix.install
run: ${{ matrix.install }}

- name: Check
Expand Down
30 changes: 2 additions & 28 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,28 +77,23 @@ jobs:

- target: aarch64-unknown-linux-musl
os: ubuntu-22.04-arm
args: --no-default-features --features rustls
install: |
sudo apt install -y musl-tools
args: --features vendored
- target: x86_64-unknown-linux-musl
os: ubuntu-22.04
args: --no-default-features --features rustls
install: |
sudo apt install -y musl-tools
args: --features vendored

- target: x86_64-apple-darwin
os: macos-15-intel
args: --features vendored
- target: aarch64-apple-darwin
os: macos-15
args: --features vendored

- target: x86_64-pc-windows-msvc
os: windows-2022
exe: ".exe"
install: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md
- target: aarch64-pc-windows-msvc
os: windows-11-arm
exe: ".exe"
Expand All @@ -107,9 +102,6 @@ jobs:
Start-Process -FilePath .\rustup-init.exe -ArgumentList "-y" -NoNewWindow -Wait
echo "$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:arm64-windows-static-md

runs-on: ${{ matrix.os }}

steps:
Expand All @@ -118,24 +110,6 @@ jobs:
with:
fetch-depth: 0

- name: Configure vcpkg binary cache
if: runner.os == 'Windows'
shell: bash
run: |
cache_dir="${{ runner.temp }}/vcpkg-binary-cache"
mkdir -p "$cache_dir"
echo "VCPKG_DEFAULT_BINARY_CACHE=$cache_dir" >> "$GITHUB_ENV"
echo "VCPKG_BINARY_SOURCES=clear;files,$cache_dir,readwrite" >> "$GITHUB_ENV"

- name: Cache vcpkg binaries
uses: actions/cache@v6
if: runner.os == 'Windows'
with:
path: ${{ runner.temp }}/vcpkg-binary-cache
key: ${{ runner.os }}-vcpkg-${{ matrix.target }}-${{ hashFiles('.github/workflows/release.yaml') }}
restore-keys: |
${{ runner.os }}-vcpkg-${{ matrix.target }}-

- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.target }}
Expand Down
Loading
Loading