mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-08 08:06:42 -06:00
ci: simplify target matrix, fail on missing files, run generate-types before
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -20,11 +20,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
target: ""
|
target: x86_64-unknown-linux-gnu
|
||||||
artifact_name: byte-me-linux-x86_64
|
artifact_name: byte-me-linux-x86_64
|
||||||
artifact_path: src-tauri/target/x86_64-unknown-linux-gnu/release/byte-me
|
artifact_path: src-tauri/target/x86_64-unknown-linux-gnu/release/byte-me
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
target: ""
|
target: x86_64-pc-windows-msvc
|
||||||
artifact_name: byte-me-windows-x86_64
|
artifact_name: byte-me-windows-x86_64
|
||||||
artifact_path: src-tauri/target/x86_64-pc-windows-msvc/release/byte-me.exe
|
artifact_path: src-tauri/target/x86_64-pc-windows-msvc/release/byte-me.exe
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
run: cargo fetch --manifest-path src-tauri/Cargo.toml
|
run: cargo fetch --manifest-path src-tauri/Cargo.toml
|
||||||
|
|
||||||
- name: Install Tauri CLI
|
- name: Install Tauri CLI
|
||||||
uses: taiki-e/cache-cargo-install-action@v2
|
uses: Xevion/cache-cargo-install-action@main
|
||||||
with:
|
with:
|
||||||
tool: tauri-cli@2
|
tool: tauri-cli@2
|
||||||
locked: true
|
locked: true
|
||||||
@@ -97,12 +97,10 @@ jobs:
|
|||||||
librsvg2-dev \
|
librsvg2-dev \
|
||||||
patchelf
|
patchelf
|
||||||
|
|
||||||
- name: Build app (tauri - host)
|
- name: Generate frontend bindings
|
||||||
if: matrix.target == ''
|
run: pnpm run generate-types
|
||||||
run: cargo tauri build
|
|
||||||
|
|
||||||
- name: Build app (tauri - target)
|
- name: Build app (tauri)
|
||||||
if: matrix.target != ''
|
|
||||||
run: cargo tauri build --target ${{ matrix.target }}
|
run: cargo tauri build --target ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Upload binary artifact
|
- name: Upload binary artifact
|
||||||
@@ -110,6 +108,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact_name }}
|
name: ${{ matrix.artifact_name }}
|
||||||
path: ${{ matrix.artifact_path }}
|
path: ${{ matrix.artifact_path }}
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: sccache stats
|
- name: sccache stats
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user