mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 14:36:16 +01:00
Add github action to build example
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -16,8 +16,14 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- platform: "ubuntu-latest"
|
||||
artifact_name: "minimal"
|
||||
asset_name: "minimal-linux"
|
||||
- platform: "windows-latest"
|
||||
artifact_name: "minimal.exe"
|
||||
asset_name: "minimal-windows.exe"
|
||||
- platform: "macos-latest"
|
||||
artifact_name: "minimal"
|
||||
asset_name: "minimal-macos"
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
@@ -38,4 +44,10 @@ jobs:
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Build
|
||||
run: cargo build
|
||||
run: cargo build --p minimal
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.asset_name }}
|
||||
path: target/release/examples/${{ matrix.artifact_name }}
|
||||
|
||||
Reference in New Issue
Block a user