Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/build-BITSv4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This is a basic workflow to help you get started with Actions

name: Build BITSv4

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches:
- "master"
- "feature/build-system"
paths:
- "**/BITSv4/test/**"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

pull_request:

# 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
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
pwd
cd Code/BITS/
arduino-cli compile -e BITSv4
cd BITSv4/build
ls
pwd

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: BITSv5-latest-unstable
files: |
/home/runner/work/command_module/command_module/Code/BITS/BITSv4/build/teensy.avr.teensy31/BITSv4.ino.hex
/home/runner/work/command_module/command_module/Code/BITS/BITSv4/build/teensy.avr.teensy31/BITSv4.ino.elf
/home/runner/work/command_module/command_module/Code/BITS/BITSv4/build/teensy.avr.teensy31/BITSv4.ino.eep
/home/runner/work/command_module/command_module/Code/BITS/BITSv4/build/teensy.avr.teensy31/BITSv4.ino.lst
/home/runner/work/command_module/command_module/Code/BITS/BITSv4/build/teensy.avr.teensy31/BITSv4.ino.sym


3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
*.l#7
*.l#8
*.l#9
.DS_Store
**/.DS_Store
build/
Binary file removed Code/.DS_Store
Binary file not shown.
Binary file removed Code/BITS/.DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions Code/BITS/BITSv4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ The UMDBPP Iridium payload, armed with an Iridium 9603 on a RockBlock carrier bo
WIP: XBee Mesh net support for other payloads
New PCB for smaller, lighter, better looking tracking
Battery Voltage sensing for long haul flights


# Building Code
Hi, from the `BITS` folder, run `arduino-cli compile -e BITSv4` to do reproducible builds. I also created a Github Action that will automatically build the BITSv4 code when you push any changes to the master branch. You can find the build artifacts at [https://github.com/UMDBPP/command_module/releases](https://github.com/UMDBPP/command_module/releases).
Binary file not shown.
Loading