Skip to content

Commit

Permalink
ci: link OpenSSL statically into Windows binary
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Mar 25, 2024
1 parent af3a3a3 commit 1e8496d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
uses: johnwason/vcpkg-action@v5
with:
pkgs: openssl
triplet: x64-windows-release
triplet: x64-windows-static
token: ${{ github.token }}

- name: Set OPENSSL_DIR environment variable
if: runner.os == 'Windows'
shell: bash
run: echo "OPENSSL_DIR=${{ github.workspace }}\\vcpkg\\installed\\x64-windows-release" >> $GITHUB_ENV
run: echo "OPENSSL_DIR=${{ github.workspace }}\\vcpkg\\installed\\x64-windows-static" >> $GITHUB_ENV

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
Expand All @@ -68,7 +68,7 @@ jobs:
set -ex
pkgname=yara-x-${{ matrix.build }}-${{ github.ref_name }}
if [ "${{ matrix.build }}" = "windows" ]; then
7z a $pkgname.zip ./target/release-lto/yr.exe
7z a $pkgname.zip ./target/release-lto/yr.exe
else
tar czf $pkgname.gzip -C target/release-lto yr
fi
Expand Down

0 comments on commit 1e8496d

Please sign in to comment.