From ee666851eabae9bd867e92bc233ba524d2e73807 Mon Sep 17 00:00:00 2001 From: James Jackson Date: Wed, 11 Mar 2020 17:45:14 -0700 Subject: [PATCH 1/2] automatic release --- .github/workflows/pre-release.yml | 43 +++++++++++++++++++++++++++++++ .github/workflows/release.yml | 41 +++++++++++++++++++++++++++++ comms/mavlink/mavlink.h | 2 ++ 3 files changed, 86 insertions(+) create mode 100644 .github/workflows/pre-release.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 00000000..a9052eb7 --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,43 @@ +--- +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: curl --retry 10 --retry-max-time 120 -L "https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2" | tar xfj - + - name: check toolchain + run: | + export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin + arm-none-eabi-gcc --version + - name: make_f4 + run: | + export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin + make BOARD=REVO -j4 -l4 + - name: make_f1 + run: | + export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin + 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..fc8595a7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +--- +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: curl --retry 10 --retry-max-time 120 -L "https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2" | tar xfj - + - name: check toolchain + run: | + export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin + arm-none-eabi-gcc --version + - name: make_f4 + run: | + export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin + make BOARD=REVO -j4 -l4 + - name: make_f1 + run: | + export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin + 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 diff --git a/comms/mavlink/mavlink.h b/comms/mavlink/mavlink.h index 0abf6dae..4b71dc65 100644 --- a/comms/mavlink/mavlink.h +++ b/comms/mavlink/mavlink.h @@ -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 From 8dd8cbdcf39475a8c245e89e9553a62913e8bf45 Mon Sep 17 00:00:00 2001 From: Daniel Koch Date: Thu, 12 Mar 2020 17:33:55 -0600 Subject: [PATCH 2/2] Install ARM GCC from PPA for automatic release --- .github/workflows/pre-release.yml | 16 ++++++---------- .github/workflows/release.yml | 16 ++++++---------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index a9052eb7..8c54e635 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -16,19 +16,15 @@ jobs: - name: clone run: git submodule update --init --recursive - name: install toolchain - run: curl --retry 10 --retry-max-time 120 -L "https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2" | tar xfj - - - name: check toolchain run: | - export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin - arm-none-eabi-gcc --version + 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: | - export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin - make BOARD=REVO -j4 -l4 + run: make BOARD=REVO -j4 -l4 - name: make_f1 - run: | - export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin - make BOARD=NAZE -j4 -l4 + run: make BOARD=NAZE -j4 -l4 - uses: "marvinpinto/action-automatic-releases@latest" with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc8595a7..8d9cd670 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,19 +16,15 @@ jobs: - name: clone run: git submodule update --init --recursive - name: install toolchain - run: curl --retry 10 --retry-max-time 120 -L "https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2" | tar xfj - - - name: check toolchain run: | - export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin - arm-none-eabi-gcc --version + 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: | - export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin - make BOARD=REVO -j4 -l4 + run: make BOARD=REVO -j4 -l4 - name: make_f1 - run: | - export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_3-2016q1/bin - make BOARD=NAZE -j4 -l4 + run: make BOARD=NAZE -j4 -l4 - uses: "marvinpinto/action-automatic-releases@latest" with: