Skip to content

Commit

Permalink
ci: fix windows env
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Nijhuis committed Apr 23, 2024
1 parent 4aec208 commit 9791f53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ jobs:
- name: Set Windows Env Vars
run: |
if [ "${{ matrix.platform }}" = "windows-latest" ]; then
echo "export OPENSSL_DIR='C:\Program Files\OpenSSL'" >> $GITHUB_ENV
echo "export SSL_CERT_FILE='C:\Program Files\OpenSSL\ca\cacert.pem'" >> $GITHUB_ENV
echo "export OPENSSL_NO_VENDOR=1" >> $GITHUB_ENV
fi
if ("${{ matrix.platform }}" -eq "windows-latest") {
echo "OPENSSL_DIR='C:\Program Files\OpenSSL'"" >> $env:GITHUB_ENV
echo "SSL_CERT_FILE='C:\Program Files\OpenSSL\ca\cacert.pem'" >> $env:GITHUB_ENV
echo "OPENSSL_NO_VENDOR=1" >> $env:GITHUB_ENV
}
- name: Build Vite + Tauri
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ jobs:

- name: Set Windows Env Vars
run: |
if [ "${{ matrix.os }}" = "windows-latest" ]; then
echo "export OPENSSL_DIR='C:\Program Files\OpenSSL'" >> $GITHUB_ENV
echo "export SSL_CERT_FILE='C:\Program Files\OpenSSL\ca\cacert.pem'" >> $GITHUB_ENV
echo "export OPENSSL_NO_VENDOR=1" >> $GITHUB_ENV
fi
if ("${{ matrix.settings.platform }}" -eq "windows-latest") {
echo "OPENSSL_DIR='C:\Program Files\OpenSSL'"" >> $env:GITHUB_ENV
echo "SSL_CERT_FILE='C:\Program Files\OpenSSL\ca\cacert.pem'" >> $env:GITHUB_ENV
echo "OPENSSL_NO_VENDOR=1" >> $env:GITHUB_ENV
}
- name: Create release
uses: tauri-apps/tauri-action@v0
Expand Down

0 comments on commit 9791f53

Please sign in to comment.