From 4cb2c92a0f11eb9f035c44a87bc68b65b0f62cfa Mon Sep 17 00:00:00 2001 From: Jaeson Fan Date: Sun, 22 Dec 2024 12:44:57 +0800 Subject: [PATCH] fix release profile (wip) --- .github/workflows/release.yml | 6 ++++-- .github/workflows/test_openssl.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test_openssl.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 511afa4..0da2e73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,10 @@ jobs: sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - - name: install frontend dependencies - run: cargo install trunk + - name: install trunk + run: | + rustup target add wasm32-unknown-unknown + cargo install trunk - uses: tauri-apps/tauri-action@v0 env: diff --git a/.github/workflows/test_openssl.yaml b/.github/workflows/test_openssl.yaml new file mode 100644 index 0000000..0f58741 --- /dev/null +++ b/.github/workflows/test_openssl.yaml @@ -0,0 +1,24 @@ +name: Build with OpenSSL + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install OpenSSL + run: | + choco install openssl + # Add OpenSSL to PATH + echo "C:\Program Files\OpenSSL-Win64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + + - name: Verify OpenSSL installation + run: | + openssl version \ No newline at end of file