commit
51197ab3b6
3 changed files with 48 additions and 17 deletions
|
|
@ -1,2 +1 @@
|
||||||
[build]
|
[build]
|
||||||
rustc-wrapper = "sccache"
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,16 @@
|
||||||
name: "test-on-pr"
|
name: "Release"
|
||||||
|
|
||||||
on: [pull_request]
|
on:
|
||||||
|
workflow_dispatch
|
||||||
# This workflow will build your tauri app without uploading it anywhere.
|
# on:
|
||||||
|
# push:
|
||||||
|
# branches:
|
||||||
|
# - "test-build"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-tauri:
|
publish-tauri:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -23,10 +28,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: setup node
|
- uses: oven-sh/setup-bun@v2
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: lts/*
|
|
||||||
|
|
||||||
- name: install Rust stable
|
- name: install Rust stable
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
@ -38,14 +40,33 @@ jobs:
|
||||||
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
|
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev libopenblas-dev libx11-dev libxtst-dev libxrandr-dev
|
||||||
# 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 Vulkan SDK
|
||||||
|
if: matrix.platform == 'windows-latest' # This must match the platform value defined above.
|
||||||
|
uses: humbletim/install-vulkan-sdk@v1.2
|
||||||
|
with:
|
||||||
|
version: 1.4.309.0
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- name: Install trusted-signing-cli
|
||||||
|
if: matrix.platform == 'windows-latest' # This must match the platform value defined above.
|
||||||
|
run: cargo install trusted-signing-cli
|
||||||
|
|
||||||
|
- name: Prepare Vulkan SDK for Ubuntu 22.04
|
||||||
|
run: |
|
||||||
|
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
|
||||||
|
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.290-jammy.list https://packages.lunarg.com/vulkan/1.3.290/lunarg-vulkan-1.3.290-jammy.list
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install vulkan-sdk -y
|
||||||
|
sudo apt-get install -y mesa-vulkan-drivers
|
||||||
|
if: matrix.platform == 'ubuntu-22.04'
|
||||||
|
|
||||||
- name: install frontend dependencies
|
- name: install frontend dependencies
|
||||||
run: yarn install # change this to npm, pnpm or bun depending on which one you use.
|
run: bun install # change this to npm, pnpm or bun depending on which one you use.
|
||||||
|
|
||||||
- name: import Apple Developer Certificate
|
- name: import Apple Developer Certificate
|
||||||
|
if: matrix.platform == 'macos-latest'
|
||||||
# Prevents keychain from locking automatically for 3600 seconds.
|
# Prevents keychain from locking automatically for 3600 seconds.
|
||||||
env:
|
env:
|
||||||
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
||||||
|
|
@ -62,6 +83,7 @@ jobs:
|
||||||
security find-identity -v -p codesigning build.keychain
|
security find-identity -v -p codesigning build.keychain
|
||||||
|
|
||||||
- name: verify certificate
|
- name: verify certificate
|
||||||
|
if: matrix.platform == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application")
|
CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application")
|
||||||
CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}')
|
CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}')
|
||||||
|
|
@ -69,7 +91,8 @@ jobs:
|
||||||
echo "Certificate imported."
|
echo "Certificate imported."
|
||||||
|
|
||||||
# If tagName and releaseId are omitted tauri-action will only build the app and won't try to upload any assets.
|
# If tagName and releaseId are omitted tauri-action will only build the app and won't try to upload any assets.
|
||||||
- uses: tauri-apps/tauri-action@v0
|
- name: Build
|
||||||
|
uses: tauri-apps/tauri-action@v0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
|
@ -79,5 +102,11 @@ jobs:
|
||||||
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
||||||
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
||||||
APPLE_SIGNING_IDENTITY: ${{ env.CERT_ID }}
|
APPLE_SIGNING_IDENTITY: ${{ env.CERT_ID }}
|
||||||
|
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
|
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||||
|
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
with:
|
with:
|
||||||
|
tagName: v__VERSION__
|
||||||
|
releaseName: "v__VERSION__"
|
||||||
args: ${{ matrix.args }}
|
args: ${{ matrix.args }}
|
||||||
|
prerelease: true
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "Handy",
|
"productName": "Handy",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"identifier": "com.handy.app",
|
"identifier": "com.pais.handy",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "bun run dev",
|
"beforeDevCommand": "bun run dev",
|
||||||
"devUrl": "http://localhost:1420",
|
"devUrl": "http://localhost:1420",
|
||||||
|
|
@ -50,6 +50,9 @@
|
||||||
"type": "none"
|
"type": "none"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"windows": {
|
||||||
|
"signCommand": "trusted-signing-cli -e https://eus.codesigning.azure.net/ -a CJ-Signing -c cjpais-dev -d Handy %1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue