Build 2024.0 Flight #3
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
# This is a basic workflow to help you get started with Actions | |
name: Build 2024.0 Flight | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "master" branch | |
push: | |
branches: ["avionics-2.0"] | |
paths: | |
- "**/2024.0/flight/**" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# Runs a set of commands using the runners shell | |
- name: Run a multi-line script | |
run: | | |
sudo apt update | |
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential | |
pwd | |
git submodule update --init --remote --recursive | |
cd 2024-Firmware/2024.0/flight | |
rm -rf build | |
mkdir build | |
cd build | |
export PICO_SDK_PATH=../../pico-sdk | |
cmake .. | |
make | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: 2024.0-v0.1 | |
files: | | |
/home/runner/work/GHOUL/2024-Firmware/2024.0/flight/build/flight.uf2 | |