Skip to content

update some rust libraries #13

update some rust libraries

update some rust libraries #13

Workflow file for this run

name: "publish"
on:
push:
branches:
- tauri
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
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: "ubuntu-22.04"
args: ""
# - platform: "windows-latest"
# args: ""
runs-on: ${{ matrix.settings.platform }}
steps:
- uses: actions/checkout@v4
- name: install dependencies (ubuntu only)
if: matrix.settings.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "yarn"
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# 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: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: install frontend dependencies
run: yarn install --immutable
- name: Save API key to file
if: matrix.settings.platform == 'macos-latest'
env:
APPLE_API_KEY_VALUE: ${{ secrets.APPLE_API_KEY_VALUE }}
shell: bash
run: echo "$APPLE_API_KEY_VALUE" >> ${{ github.workspace }}/apple-api-key.p8
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_KEY_VALUE: ${{ secrets.APPLE_API_KEY_VALUE }}
APPLE_API_KEY_PATH: ${{ github.workspace }}/apple-api-key.p8
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
TAURI_KEY_PASSWORD=: ${{ secrets.TAURI_KEY_PASSWORD }}
TAURI_PRIVATE_KEY=: ${{ secrets.TAURI_PRIVATE_KEY }}
with:
tagName: v__VERSION__
releaseName: "v__VERSION__"
releaseBody: "See the assets to download a version and install."
releaseDraft: false
prerelease: false
args: ${{ matrix.settings.args }}