lume/.github/workflows/main.yml

74 lines
2.6 KiB
YAML
Raw Permalink Normal View History

2024-04-20 11:13:36 +00:00
name: "Publish"
2023-08-19 08:27:10 +00:00
on: workflow_dispatch
2023-03-28 03:51:18 +00:00
2023-03-31 13:12:06 +00:00
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
2024-04-20 11:13:36 +00:00
RUSTFLAGS: "-W unreachable-pub -W rust-2021-compatibility"
2023-03-31 13:12:06 +00:00
2023-03-28 03:51:18 +00:00
jobs:
publish-tauri:
strategy:
fail-fast: false
matrix:
2024-05-12 01:54:24 +00:00
include:
- platform: "macos-latest" # for Arm based macs (M1 and above).
2024-05-12 01:38:23 +00:00
args: "--target aarch64-apple-darwin"
2024-05-12 01:54:24 +00:00
- platform: "macos-latest" # for Intel based macs.
2024-05-12 01:38:23 +00:00
args: "--target x86_64-apple-darwin"
2024-06-07 04:26:20 +00:00
- platform: "macos-latest" # for Intel based macs.
args: "--target universal-apple-darwin"
2024-05-12 01:54:24 +00:00
#- platform: 'ubuntu-22.04'
# args: ''
#- platform: 'windows-latest'
# args: '--target x86_64-pc-windows-msvc'
runs-on: ${{ matrix.platform }}
2023-03-28 03:51:18 +00:00
steps:
2024-05-12 01:38:23 +00:00
- uses: actions/checkout@v4
2024-05-12 01:54:24 +00:00
2024-05-12 01:38:23 +00:00
- name: Setup Node
uses: actions/setup-node@v4
2023-03-28 03:51:18 +00:00
with:
2024-05-12 01:54:24 +00:00
node-version: "lts/*"
2024-05-12 01:57:57 +00:00
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
version: 8.x.x
run_install: false
2024-05-12 01:54:24 +00:00
2024-05-12 01:38:23 +00:00
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
2023-03-28 04:20:56 +00:00
with:
2024-05-12 01:38:23 +00:00
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
2024-05-12 01:54:24 +00:00
2024-05-12 01:38:23 +00:00
- name: Install dependencies (ubuntu only)
2024-05-12 01:57:57 +00:00
if: matrix.platform == 'ubuntu-22.04'
2023-03-28 03:51:18 +00:00
run: |
sudo apt-get update
2023-10-26 06:39:11 +00:00
sudo apt-get install -y build-essential libssl-dev javascriptcoregtk-4.1 libayatana-appindicator3-dev libsoup-3.0-dev libgtk-3-dev libwebkit2gtk-4.1-dev webkit2gtk-4.1 librsvg2-dev patchelf
2024-05-12 01:54:24 +00:00
- name: Install frontend dependencies
run: pnpm install
2023-04-01 01:20:13 +00:00
- uses: tauri-apps/tauri-action@dev
2023-03-28 03:51:18 +00:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2023-11-15 01:32:40 +00:00
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
2023-07-07 04:31:34 +00:00
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
2023-10-04 04:17:04 +00:00
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
2023-03-28 03:51:18 +00:00
with:
2023-08-13 05:03:00 +00:00
tagName: v__VERSION__
2024-04-20 11:13:36 +00:00
releaseName: "v__VERSION__"
releaseBody: "See the assets to download this version and install."
2023-03-28 03:51:18 +00:00
releaseDraft: true
prerelease: false
2024-05-12 01:57:57 +00:00
args: ${{ matrix.args }}
2024-01-17 06:07:01 +00:00
includeDebug: false