chore(ci): added new build workflow, update release to prerelease
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
name: Build Tamagotchi
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-tamagotchi:
|
||||
name: Build Tamagotchi
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: macos-latest
|
||||
platform: macos
|
||||
target: x86_64-apple-darwin
|
||||
arch: x64
|
||||
artifact: dmg
|
||||
- os: macos-latest
|
||||
platform: macos
|
||||
target: aarch64-apple-darwin
|
||||
arch: aarch64
|
||||
artifact: dmg
|
||||
- os: ubuntu-latest
|
||||
platform: linux
|
||||
target: x86_64-unknown-linux-gnu
|
||||
arch: x86_64
|
||||
artifact: AppImage
|
||||
- os: ubuntu-24.04-arm
|
||||
platform: linux
|
||||
target: aarch64-unknown-linux-gnu
|
||||
arch: aarch64
|
||||
artifact: AppImage
|
||||
- os: windows-latest
|
||||
platform: windows
|
||||
target: x86_64-pc-windows-msvc
|
||||
arch: x64
|
||||
artifact: exe
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js 23.x
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 23.x
|
||||
# registry-url required. Learn more at
|
||||
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
run_install: false
|
||||
|
||||
- name: Install Rust Stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: ${{ matrix.target }}
|
||||
|
||||
- name: install system dependencies (ubuntu only)
|
||||
if: matrix.platform == 'linux' # This must match the platform value defined above.
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build Dependencies
|
||||
run: pnpm run packages:build
|
||||
|
||||
- name: Build Application
|
||||
run: cd apps/stage-tamagotchi-tauri && pnpm tauri build --target ${{ matrix.target }}
|
||||
|
||||
- run: |
|
||||
mv apps/stage-tamagotchi-tauri/src-tauri/target/${{ matrix.target }}/release/bundle/airi_${{ github.ref_name }}_${{ matrix.arch }}.${{ matrix.artifact }} \
|
||||
tamagotchi-dist/airi-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name }}.${{ matrix.artifact }}
|
||||
@@ -6,7 +6,7 @@ permissions:
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
- prereleased
|
||||
|
||||
jobs:
|
||||
build-tamagotchi:
|
||||
|
||||
Reference in New Issue
Block a user