Remove old files #191
Workflow file for this run
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: A-Team Firmware | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-firmware-build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch Submodules | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: | | |
${{ secrets.ROBOT_PRIVATE_DATA_PRIVATE_SSH_KEY }} | |
- run: | | |
git submodule update --init --recursive | |
./util/ateam-credentials-setup.bash | |
- uses: cachix/install-nix-action@v16 | |
with: | |
extra_nix_config: | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: Validate Nix Envoirnment | |
shell: bash | |
run: | | |
nix flake check | |
nix develop -c cargo --version | |
nix develop -c arm-none-eabi-gcc --version | |
- name: Build Common Libraries | |
shell: bash | |
run: | | |
nix develop -c make common--clean | |
nix develop -c make common--all | |
- name: Test Common Libraries | |
shell: bash | |
run: | | |
nix develop -c make common--test | |
- name: Build Common Packets | |
shell: bash | |
run: | | |
nix develop -c make software-communication--clean | |
nix develop -c make software-communication--build | |
- name: Test Common Packets | |
shell: bash | |
run: | | |
nix develop -c make software-communication--test | |
- name: Build Kicker Firmware | |
shell: bash | |
run: | | |
nix develop -c make clean | |
nix develop -c make kicker-board--all | |
- name: Build Motor Controller Firmware | |
shell: bash | |
run: | | |
nix develop -c make clean | |
nix develop -c make motor-controller--all | |
- name: Build Control Board Firmware | |
shell: bash | |
run: | | |
nix develop -c make clean | |
nix develop -c make control-board--all | |
- name: Build Control Board Firmware - Public Wifi Credentials | |
shell: bash | |
run: | | |
nix develop -c make clean | |
nix develop -c make NO_ATEAM_WIFI_CREDENTIALS=true control-board--all |