-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e39e694
commit 4fff6a4
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build, Test, and Deploy Project | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
project: | ||
description: 'Project to build (i.e. Demo/Blink)' | ||
required: true | ||
platform: | ||
description: 'Platform to build for (i.e. cli, stm32f767)' | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build ${{ github.event.inputs.project }} for ${{ github.event.inputs.platform }} | ||
run: | | ||
cd firmware | ||
make PROJECT=${{ github.event.inputs.project }} PLATFORM=${{ github.event.inputs.platform }} build | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-artifact-${{ github.event.inputs.project }}-${{ github.event.inputs.platform }} | ||
path: firmware/build/${{ github.event.inputs.project }}/${{ github.event.inputs.platform }} | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
environment: deploy | ||
steps: | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: firmware/build/${{ github.event.inputs.project }}/${{ github.event.inputs.platform }} | ||
name: build-artifact-${{ github.event.inputs.project }}-${{ github.event.inputs.platform }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters