-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the idea is to attach .sysex files to release after the release has been created
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
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" |