From 958a498e4fcbf4f045c4d19afa22a1b1deef4ca5 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 2 Jan 2023 14:08:11 +0800 Subject: [PATCH] #114 enable codesign in CI --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fafac4a..4ec4bce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,12 +131,8 @@ jobs: container: ${{ matrix.platform.container }} steps: - uses: actions/checkout@v2 - - - uses: pnpm/action-setup@v2 - with: - version: 7 - name: setup node - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: 16 cache: 'pnpm' @@ -145,11 +141,17 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: stable + - uses: pnpm/action-setup@v2 + with: + version: 7.18.2 + run_install: true + - name: install dependencies (ubuntu only) if: matrix.platform.name == 'linux+x86-64' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf pkg-config + - uses: Swatinem/rust-cache@v2 with: # The prefix cache key, this can be changed to start a new cache manually. @@ -157,8 +159,6 @@ jobs: prefix-key: ${{ matrix.platform.name }} shared-key: ci cache-targets: false - - name: install app dependencies - run: pnpm install - name: Cache Tauri Target uses: actions/cache@v3 @@ -189,7 +189,7 @@ jobs: p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }} - name: test build tauri - run: pnpm --filter gui tauri build + run: pnpm build:gui - name: Codesign package if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'