Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
m3y54m authored Apr 17, 2024
1 parent 75a8812 commit 21b2303
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Generate binary and hex outputs

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Install AVR toolchain
run: |
sudo apt-get update
sudo apt-get install gcc-avr binutils-avr avr-libc
- name: Build blinky_test
run: |
cd blinky_test && make
- name: Build bootloader
run: |
cd bootloader && make
- name: Upload blinky_test build output
uses: actions/upload-artifact@master
with:
name: blinky_test
path: |
blinky_test/build/program.bin
blinky_test/build/program.hex
- name: Upload bootloader build output
uses: actions/upload-artifact@master
with:
name: bootloader
path: |
bootloader/build/program.bin
bootloader/build/program.hex

0 comments on commit 21b2303

Please sign in to comment.