Add shortcut mechanism #199
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: C/C++ CI | |
on: | |
push: | |
branches: [ master, develop ] | |
pull_request: | |
branches: [ master, develop ] | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Set circle as writable | |
run: | | |
sudo chown -R $USER:$USER $(pwd) | |
shell: bash | |
working-directory: . | |
- name: Prepare SD Card | |
run: | | |
mkdir sdcard | |
shell: bash | |
working-directory: . | |
- name: Build Pi | |
uses: ./sugarpi-action | |
id: buildpi | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: SugarPi | |
path: sdcard/* |