-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (62 loc) · 2.17 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (62 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: release
# Push a version tag (e.g. v0.1.1) to build Windows + Linux + macOS and
# publish them all to a GitHub Release, with an auto-update manifest.
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'ubuntu-22.04'
args: '--bundles appimage,deb'
rust_target: ''
- platform: 'windows-latest'
args: '--bundles nsis'
rust_target: ''
- platform: 'macos-latest'
args: '--bundles dmg --target aarch64-apple-darwin'
rust_target: 'aarch64-apple-darwin'
- platform: 'macos-13'
args: '--bundles dmg --target x86_64-apple-darwin'
rust_target: 'x86_64-apple-darwin'
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust_target }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './desktop/src-tauri -> target'
- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-nice
- name: Prepare frontend (copy the game into dist)
shell: pwsh
run: ./desktop/sync-dist.ps1
- name: Build and publish
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ''
with:
projectPath: desktop
tagName: ${{ github.ref_name }}
releaseName: 'Rogue Racer ${{ github.ref_name }}'
releaseBody: 'Automatic build. Download the installer for your OS below.'
releaseDraft: false
prerelease: false
args: ${{ matrix.args }}