Skip to content

Commit

Permalink
[SOFT-539] Fix CI certificate issue (#440)
Browse files Browse the repository at this point in the history
For some reason, the fiam/arm-none-eabi-gcc action in CI was failing with a certificate issue. To fix it, we just install the arm-none-eabi toolchain ourselves instead of using the third-party action.

Also, added a copy of the nanopb license to libraries/nanopb so we don't violate any license terms.
  • Loading branch information
ryandancy authored Sep 16, 2021
1 parent 4533b39 commit 9ea126a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,17 @@ jobs:
ln -sf `which clang-5.0` ~/.local/bin/clang
ln -sf `which clang-format-5.0` ~/.local/bin/clang-format
- uses: fiam/arm-none-eabi-gcc@v1
with:
release: '6-2017-q2'
- name: Install STM32 toolchain
env:
GCC_PATH: gcc-arm-none-eabi-6-2017-q2-update
GCC_ARCHIVE_PATH: gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
GCC_URL: https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
run: |
cd ${HOME}
wget -nv $GCC_URL
mkdir -p $GCC_PATH
tar -xjf $GCC_ARCHIVE_PATH
echo "${HOME}/${GCC_PATH}/bin" >> $GITHUB_PATH
- name: Install GNU Make 4.1
env:
Expand Down
20 changes: 20 additions & 0 deletions libraries/nanopb/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2011 Petteri Aimonen <jpa at nanopb.mail.kapsi.fi>

This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held liable
for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it and
redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you
must not claim that you wrote the original software. If you use
this software in a product, an acknowledgment in the product
documentation would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and
must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any source
distribution.
6 changes: 2 additions & 4 deletions libraries/nanopb/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
This library contains the .h and .c files for nanopb

https://github.com/nanopb

# nanopb

This library contains the .h and .c files for compiling projects using
[nanopb](https://github.com/nanopb), originally written by Petteri Aimonen.

0 comments on commit 9ea126a

Please sign in to comment.