Skip to content

Commit

Permalink
Simplify Windows build steps into a single step
Browse files Browse the repository at this point in the history
The commands depend on each other, so I think it’s clearer if they are
put into a single step.
  • Loading branch information
mgeisler committed Apr 2, 2024
1 parent 872aa2f commit a93aa3c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/native_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,12 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: ilammy/setup-nasm@v1
if: runner.os == 'Windows'
- run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
if: runner.os == 'Windows'
- run: vcpkg install openssl:x64-windows-static-md sqlite3:x64-windows-static-md
if: runner.os == 'Windows'
- run: echo "OPENSSL_DIR=C:/vcpkg/packages/openssl_x64-windows-static-md" | Out-File -FilePath $env:GITHUB_ENV -Append
if: runner.os == 'Windows'
- run: curl -o C:/cacert.pem https://curl.se/ca/cacert.pem
if: runner.os == 'Windows'
- run: echo "SSL_CERT_FILE=C:/cacert.pem" | Out-File -FilePath $env:GITHUB_ENV -Append
- run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md sqlite3:x64-windows-static-md
echo "OPENSSL_DIR=C:/vcpkg/packages/openssl_x64-windows-static-md" | Out-File -FilePath $env:GITHUB_ENV -Append
curl -o C:/cacert.pem https://curl.se/ca/cacert.pem
echo "SSL_CERT_FILE=C:/cacert.pem" | Out-File -FilePath $env:GITHUB_ENV -Append
if: runner.os == 'Windows'
- name: Install Kotlin dependencies
run: |
Expand Down

0 comments on commit a93aa3c

Please sign in to comment.