mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-09-02 20:27:23 +00:00
ci: add debug input for nightly builds
This commit is contained in:
parent
a3efa98fb8
commit
1fb6a339cf
1 changed files with 26 additions and 4 deletions
30
.github/workflows/nightly.yml
vendored
30
.github/workflows/nightly.yml
vendored
|
@ -4,6 +4,12 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '15 23 * * *'
|
- cron: '15 23 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
debug:
|
||||||
|
description: 'If set to true, a debug build will be created.'
|
||||||
|
required: true
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-linux-appimage:
|
publish-linux-appimage:
|
||||||
|
@ -42,6 +48,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
workspaces: './src-tauri -> target'
|
workspaces: './src-tauri -> target'
|
||||||
|
|
||||||
|
- name: Determine Build Profile
|
||||||
|
id: build_profile
|
||||||
|
run: |
|
||||||
|
if [[ "${{ github.event.inputs.debug }}" == "true" ]]; then
|
||||||
|
echo "profile=debug" >> $GITHUB_OUTPUT
|
||||||
|
echo "artifact_suffix=-debug" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "profile=release" >> $GITHUB_OUTPUT
|
||||||
|
echo "artifact_suffix=" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install project dependencies
|
- name: Install project dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
@ -52,14 +69,19 @@ jobs:
|
||||||
run: swift build -c release --package-path src-tauri/SoulverWrapper
|
run: swift build -c release --package-path src-tauri/SoulverWrapper
|
||||||
|
|
||||||
- name: Build AppImage
|
- name: Build AppImage
|
||||||
run: pnpm tauri build --verbose --debug --bundles appimage
|
run: |
|
||||||
|
BUILD_ARGS="--verbose --bundles appimage"
|
||||||
|
if [[ "${{ steps.build_profile.outputs.profile }}" == "debug" ]]; then
|
||||||
|
BUILD_ARGS="$BUILD_ARGS --debug"
|
||||||
|
fi
|
||||||
|
pnpm tauri build $BUILD_ARGS
|
||||||
env:
|
env:
|
||||||
LD_LIBRARY_PATH: ${{ github.workspace }}/src-tauri/SoulverWrapper/.build/release:${{ github.workspace }}/src-tauri/SoulverWrapper/Vendor/SoulverCore-linux
|
LD_LIBRARY_PATH: ${{ github.workspace }}/src-tauri/SoulverWrapper/.build/${{ steps.build_profile.outputs.profile }}:${{ github.workspace }}/src-tauri/SoulverWrapper/Vendor/SoulverCore-linux
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: raycast-linux
|
name: raycast-linux${{ steps.build_profile.outputs.artifact_suffix }}
|
||||||
path: src-tauri/target/debug/bundle/appimage/*.AppImage
|
path: src-tauri/target/${{ steps.build_profile.outputs.profile }}/bundle/appimage/*.AppImage
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue