Skip to content

Commit

Permalink
add deploy github action
Browse files Browse the repository at this point in the history
the idea is to attach .sysex files to release after the release has been created
  • Loading branch information
paradajz committed Aug 15, 2020
1 parent 0b92b46 commit c0852b2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy

on:
release:
types: [created]

jobs:
build:
name: Build release binaries
runs-on: ubuntu-20.04
steps:
- name: Pull the repository and submodules
uses: actions/checkout@v1
with:
submodules: true
- name: Prepare build env
run: |
wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -O armtoolchain.tar.bz2
sudo apt-get install -y srecord jq
sudo snap install yq
tar xjf armtoolchain.tar.bz2
git clone https://github.com/Synapseware/avr-toolchain
tar xzf avr-toolchain/toolchain/avr8-gnu-toolchain-3.6.2.1759-linux.any.x86_64.tar.gz
- name: Build
run: |
PATH=$(pwd)/avr8-gnu-toolchain-linux_x86_64/bin:$(pwd)/gcc-arm-none-eabi-9-2019-q4-major/bin:${PATH}
cd src/
../scripts/build_targets.sh --type=fw_release
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag_name="${GITHUB_REF##*/}"
hub release edit $(find . -type f -name "*.sysex" -printf "-a %p ") -m "" "$tag_name"

0 comments on commit c0852b2

Please sign in to comment.