From 1a5f0e517d1d237b932bf7209809d0be4ef1ac71 Mon Sep 17 00:00:00 2001 From: Vollate Date: Tue, 4 Jun 2024 10:22:30 +0800 Subject: [PATCH 1/3] fix(cd mac) --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37caf814..abb6b891 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,11 @@ jobs: # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2. # You can remove the one that doesn't apply to your app to speed up the workflow a bit. + - name: install dependencies (mac only) + if: matrix.settings.platform == 'macos-latest' || matrix.settings.platform == 'aarch64-apple-darwin,x86_64-apple-darwin' + run: | + brew install protobuf + - name: setup node uses: actions/setup-node@v4 with: From 1fe06bd1578406e671e399d2792626836d7ceaa1 Mon Sep 17 00:00:00 2001 From: Vollate Date: Tue, 4 Jun 2024 12:02:16 +0800 Subject: [PATCH 2/3] remove x86_64 macos --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abb6b891..eb3d824c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,8 +17,8 @@ jobs: settings: - platform: 'macos-latest' # for Arm based macs (M1 and above). args: '--target aarch64-apple-darwin' - - platform: 'macos-latest' # for Intel based macs. - args: '--target x86_64-apple-darwin' + #- platform: 'macos-latest' # for Intel based macs. + #args: '--target x86_64-apple-darwin' - platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04. args: '' - platform: 'windows-latest' From 168fbda1f9a6c8ac1c47e5e4ef74a59b39c2eeec Mon Sep 17 00:00:00 2001 From: Vollate Date: Tue, 4 Jun 2024 12:12:37 +0800 Subject: [PATCH 3/3] add windows protobuf --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb3d824c..7c098775 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,6 +54,14 @@ jobs: # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. targets: ${{ matrix.settings.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + - name: install dependencies (windows only) + if: matrix.settings.platform == 'windows-latest' + run: | + Invoke-WebRequest -Uri https://github.com/protocolbuffers/protobuf/releases/download/v21.9/protoc-21.9-win64.zip -OutFile protoc.zip + Expand-Archive -Path protoc.zip -DestinationPath $Env:UserProfile\protoc + $protocPath = "$Env:UserProfile\protoc\bin\protoc.exe" + echo "PROTOC=$protocPath" >> $Env:GITHUB_ENV + - name: Rust cache uses: swatinem/rust-cache@v2 with: