mirror of
https://github.com/LNH-team/dspico-usb-examples.git
synced 2026-06-02 09:16:50 +02:00
workflow: add build pipeline
This commit is contained in:
38
.github/workflows/build.yml
vendored
Normal file
38
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: Build USB examples
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["develop"]
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
|
pull_request:
|
||||||
|
branches: ["develop"]
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
example: [
|
||||||
|
"mass-storage",
|
||||||
|
"usb-speaker",
|
||||||
|
"usb-video"
|
||||||
|
]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: devkitpro/devkitarm:20241104
|
||||||
|
name: Build with Docker using devkitARM
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Build example
|
||||||
|
run: |
|
||||||
|
cd examples/${{ matrix.example }}
|
||||||
|
make
|
||||||
|
- name: Publish build to GH Actions
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
path: examples/${{ matrix.example }}/${{ matrix.example }}.nds
|
||||||
|
name: ${{ matrix.example }}
|
||||||
37
.github/workflows/release.yml
vendored
Normal file
37
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Build USB examples release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
example: [
|
||||||
|
"mass-storage",
|
||||||
|
"usb-speaker",
|
||||||
|
"usb-video"
|
||||||
|
]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: devkitpro/devkitarm:20241104
|
||||||
|
name: Build with Docker using devkitARM
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Build example
|
||||||
|
run: |
|
||||||
|
cd examples/${{ matrix.example }}
|
||||||
|
make
|
||||||
|
- name: Publish build to GH Actions
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
path: examples/${{ matrix.example }}/${{ matrix.example }}.nds
|
||||||
|
name: ${{ matrix.example }}
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
examples/${{ matrix.example }}/${{ matrix.example }}.nds
|
||||||
Reference in New Issue
Block a user