Skip to content

Commit

Permalink
Add github actions #86
Browse files Browse the repository at this point in the history
  • Loading branch information
BG8LGP authored and egzumer committed Nov 8, 2023
1 parent 49cec54 commit 7916d79
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: arm-none-eabi-gcc
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '10.3-2021.10'

- name: Install Python dependencies
run: python -m pip install --upgrade pip crcmod

- name: Checkout
uses: actions/checkout@v3

- name: Submodules
run: git submodule update --init --recursive --depth 1

- name: Make
run: make

- name: size
run: arm-none-eabi-size firmware

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware*.bin
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: arm-none-eabi-gcc
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '10.3-2021.10'

- name: Install Python dependencies
run: python3 -m pip install --upgrade pip crcmod

- name: Checkout
uses: actions/checkout@v3

- name: Submodules
run: git submodule update --init --recursive --depth 1

- name: Make
run: make

- name: size
run: arm-none-eabi-size firmware

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware*.bin

- name: 'Create Release'
uses: ncipollo/release-action@v1
with:
artifacts: "firmware*.bin"

0 comments on commit 7916d79

Please sign in to comment.