From 9791f536012ca93b9bc49262b22236065027ae77 Mon Sep 17 00:00:00 2001 From: Jeroen Nijhuis Date: Tue, 23 Apr 2024 13:56:32 +0200 Subject: [PATCH] ci: fix windows env --- .github/workflows/build.yml | 10 +++++----- .github/workflows/release.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3813db0..c590dd5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2fe626..6fd1a61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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