ci: move Linux build workflow to repo root .github/workflows/
Previous location (posimai-guard-app/.github/workflows/) was wrong — GitHub Actions only reads .github/workflows/ at repository root. Renamed to build-guard-linux.yml, added working-directory default. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e7f2a3a3ad
commit
4bb35568ab
|
|
@ -1,15 +1,19 @@
|
||||||
name: Build Linux
|
name: Build Guard Linux
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # 手動実行
|
workflow_dispatch: # 手動実行
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # v1.0.0 など tag push で自動実行
|
- 'guard-v*' # guard-v0.1.0 など tag push で自動実行
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: posimai-guard-app
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
@ -31,7 +35,7 @@ jobs:
|
||||||
- name: Cache Rust
|
- name: Cache Rust
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
workspaces: src-tauri
|
workspaces: posimai-guard-app/src-tauri
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|
@ -43,22 +47,19 @@ jobs:
|
||||||
|
|
||||||
- name: Build Tauri (Linux)
|
- name: Build Tauri (Linux)
|
||||||
run: npm run build
|
run: npm run build
|
||||||
env:
|
|
||||||
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
|
||||||
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Upload .deb
|
- name: Upload .deb
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: posimai-guard-linux-deb
|
name: posimai-guard-linux-deb
|
||||||
path: src-tauri/target/release/bundle/deb/*.deb
|
path: posimai-guard-app/src-tauri/target/release/bundle/deb/*.deb
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
|
|
||||||
- name: Upload .AppImage
|
- name: Upload .AppImage
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: posimai-guard-linux-appimage
|
name: posimai-guard-linux-appimage
|
||||||
path: src-tauri/target/release/bundle/appimage/*.AppImage
|
path: posimai-guard-app/src-tauri/target/release/bundle/appimage/*.AppImage
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
|
|
||||||
- name: Create GitHub Release (on tag)
|
- name: Create GitHub Release (on tag)
|
||||||
|
|
@ -66,7 +67,7 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
src-tauri/target/release/bundle/deb/*.deb
|
posimai-guard-app/src-tauri/target/release/bundle/deb/*.deb
|
||||||
src-tauri/target/release/bundle/appimage/*.AppImage
|
posimai-guard-app/src-tauri/target/release/bundle/appimage/*.AppImage
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Loading…
Reference in New Issue