Filter platform and fix artifact name #24
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
name: Test Self-Hosted Runner | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
setup: | |
runs-on: self-hosted | |
outputs: | |
matrix: ${{ steps.generate-matrix.outputs.matrix }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Generate Matrix | |
id: generate-matrix | |
run: | | |
python3 scripts/actions/generate_matrix.py firmware/projects | |
echo "matrix=$(cat matrix.json)" >> $GITHUB_OUTPUT | |
build: | |
needs: setup | |
strategy: | |
fail-fast: false | |
matrix: | |
include: ${{ fromJson(needs.setup.outputs.matrix) }} | |
uses: ./.github/workflows/reusable-build-project.yml | |
with: | |
project: ${{ matrix.project }} | |
platform: ${{ matrix.platform }} | |
# - name: Upload artifacts | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: Test Build Artifact | |
# test-self-hosted-build: | |
# runs-on: self-hosted | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v4 | |
# - name: Build for cli | |
# run: | | |
# cd firmware | |
# make PROJECT=Demo/Blink PLATFORM=cli build | |
# - name: Build for stm32f767 | |
# run: | | |
# cd firmware | |
# make PROJECT=Demo/Blink PLATFORM=stm32f767 build | |
# - name: Upload artifacts | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: Test Build Artifact | |
# path: firmware/build/ | |
# test-self-hosted-deploy: | |
# needs: test-self-hosted-build | |
# runs-on: self-hosted | |
# # environment: test-deploy | |
# steps: | |
# - name: Download artifacts | |
# uses: actions/download-artifact@v4 | |
# with: | |
# name: Test Build Artifact | |
# - name: Deploy to Raspberry Pi | |
# run: | | |
# echo "Deploying to Raspberry Pi" | |
# scp -r 'Test Build Deploy' [email protected]: |