mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 06:26: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:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- platform: "ubuntu-latest"
|
- platform: "ubuntu-latest"
|
||||||
|
artifact_name: "minimal"
|
||||||
|
asset_name: "minimal-linux"
|
||||||
- platform: "windows-latest"
|
- platform: "windows-latest"
|
||||||
|
artifact_name: "minimal.exe"
|
||||||
|
asset_name: "minimal-windows.exe"
|
||||||
- platform: "macos-latest"
|
- platform: "macos-latest"
|
||||||
|
artifact_name: "minimal"
|
||||||
|
asset_name: "minimal-macos"
|
||||||
|
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
@@ -38,4 +44,10 @@ jobs:
|
|||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
- name: Build
|
- 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