46 lines
942 B
YAML
46 lines
942 B
YAML
name: Build PCAN firmware
|
|
|
|
on:
|
|
# push:
|
|
# branches: [ master ]
|
|
# tags:
|
|
# - "v*.*.*"
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install gcc arm toolchain...
|
|
run: sudo apt install -y gcc-arm-none-eabi
|
|
|
|
- name: Build firmware...
|
|
run: make
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: pcan_firmware
|
|
path: |
|
|
build-*/*.hex
|
|
build-*/*.bin
|
|
|
|
- name: Download Artifacts
|
|
uses: actions/download-artifact@v3
|
|
|
|
- name: Display structure of downloaded files
|
|
run: ls -R pcan_firmware/
|
|
|
|
- name: Attach to release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: |
|
|
pcan_firmware/*/*.hex
|
|
pcan_firmware/*/*.bin
|