#114 enable codesign in CI

This commit is contained in:
neil 2023-01-02 14:08:11 +08:00
parent 5ad754596c
commit 958a498e4f

View file

@ -131,12 +131,8 @@ jobs:
container: ${{ matrix.platform.container }} container: ${{ matrix.platform.container }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 7
- name: setup node - name: setup node
uses: actions/setup-node@v1 uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 16
cache: 'pnpm' cache: 'pnpm'
@ -145,11 +141,17 @@ jobs:
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
- uses: pnpm/action-setup@v2
with:
version: 7.18.2
run_install: true
- name: install dependencies (ubuntu only) - name: install dependencies (ubuntu only)
if: matrix.platform.name == 'linux+x86-64' if: matrix.platform.name == 'linux+x86-64'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf pkg-config sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf pkg-config
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
# The prefix cache key, this can be changed to start a new cache manually. # The prefix cache key, this can be changed to start a new cache manually.
@ -157,8 +159,6 @@ jobs:
prefix-key: ${{ matrix.platform.name }} prefix-key: ${{ matrix.platform.name }}
shared-key: ci shared-key: ci
cache-targets: false cache-targets: false
- name: install app dependencies
run: pnpm install
- name: Cache Tauri Target - name: Cache Tauri Target
uses: actions/cache@v3 uses: actions/cache@v3
@ -189,7 +189,7 @@ jobs:
p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }} p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
- name: test build tauri - name: test build tauri
run: pnpm --filter gui tauri build run: pnpm build:gui
- name: Codesign package - name: Codesign package
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64' if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'