Skip to content

Commit

Permalink
Merge pull request #384 from rosflight/auto_release
Browse files Browse the repository at this point in the history
Automatically build and deploy releases
  • Loading branch information
dpkoch authored Mar 13, 2020
2 parents ba83f8a + 8dd8cbd commit 23d5aa0
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: "pre-release"

on:
push:
branches:
- "master"

jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- name: clone
run: git submodule update --init --recursive
- name: install toolchain
run: |
sudo add-apt-repository -y -u ppa:team-gcc-arm-embedded/ppa
sudo apt -y install gcc-arm-embedded
- name: check toolchain
run: arm-none-eabi-gcc --version
- name: make_f4
run: make BOARD=REVO -j4 -l4
- name: make_f1
run: make BOARD=NAZE -j4 -l4

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "pre-release"
prerelease: true
title: "Development Build"
files: |
boards/airbourne/build/rosflight_REVO_Release.elf
boards/airbourne/build/rosflight_REVO_Release.bin
boards/breezy/build/rosflight_NAZE_Release.elf
boards/breezy/build/rosflight_NAZE_Release.hex
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: "Release"

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- name: clone
run: git submodule update --init --recursive
- name: install toolchain
run: |
sudo add-apt-repository -y -u ppa:team-gcc-arm-embedded/ppa
sudo apt -y install gcc-arm-embedded
- name: check toolchain
run: arm-none-eabi-gcc --version
- name: make_f4
run: make BOARD=REVO -j4 -l4
- name: make_f1
run: make BOARD=NAZE -j4 -l4

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
boards/airbourne/build/rosflight_REVO_Release.elf
boards/airbourne/build/rosflight_REVO_Release.bin
boards/breezy/build/rosflight_NAZE_Release.elf
boards/breezy/build/rosflight_NAZE_Release.hex
2 changes: 2 additions & 0 deletions comms/mavlink/mavlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#pragma GCC diagnostic ignored "-Wswitch-default"
#pragma GCC diagnostic ignored "-Wcast-align"
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#include "v1.0/rosflight/mavlink.h"
# pragma GCC diagnostic pop

Expand Down

0 comments on commit 23d5aa0

Please sign in to comment.