Skip to content

Commit

Permalink
build:update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
limitcool committed Sep 17, 2024
1 parent c9984f2 commit 5395363
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,17 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Install vcpkg
- name: Install vcpkg (Windows)
if: runner.os == 'Windows'
uses: lukka/run-vcpkg@v7
with:
vcpkgGitCommitId: 'a42af01b72c28a8e1d7b48107b33e4f286a55ef6'
- name: Build
uses: lukka/run-cmake@v3
with:
useVcpkgToolchainFile: true
buildDirectory: ${{ runner.workspace }}/build
cmakeListsOrSettingsJson: CMakeListsTxtBasic
cmakeAppendedArgs: '-DCMAKE_BUILD_TYPE=Release'
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
vcpkgTriplet: ${{ matrix.target == 'aarch64-pc-windows-msvc' && 'arm64-windows' || 'x64-windows' }}
vcpkgArguments: openssl
- name: Set OPENSSL_DIR (Windows)
if: runner.os == 'Windows'
run: echo "OPENSSL_DIR=${{ github.workspace }}/vcpkg/installed/${{ matrix.target == 'aarch64-pc-windows-msvc' && 'arm64-windows' || 'x64-windows' }}" >> $GITHUB_ENV
shell: bash
- name: Cargo Build
run: |
if [ "${{ matrix.target }}" ]; then
Expand Down

0 comments on commit 5395363

Please sign in to comment.