-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from adafruit/fix-ci
Fix ci
- Loading branch information
Showing
1 changed file
with
27 additions
and
14 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 |
---|---|---|
|
@@ -59,31 +59,44 @@ jobs: | |
|
||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-python@v3 | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
|
||
- name: Checkout linkermap | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: hathach/linkermap | ||
path: linkermap | ||
|
||
- name: Install Toolchains | ||
|
||
- name: Set Toolchain URL | ||
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v10.2.1-1.1/xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-x64.tar.gz | ||
|
||
- name: Cache Toolchain | ||
uses: actions/cache@v3 | ||
id: cache-toolchain | ||
with: | ||
path: ~/cache/ | ||
key: ${{ runner.os }}-22-05-17-${{ env.TOOLCHAIN_URL }} | ||
|
||
- name: Install Toolchain | ||
if: steps.cache-toolchain.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p ~/cache/toolchain | ||
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz | ||
tar -C ~/cache/toolchain -xaf toolchain.tar.gz | ||
- name: Set Toolchain Path | ||
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin` | ||
|
||
- name: Install Tools | ||
run: | | ||
pip3 install adafruit-nrfutil uritemplate requests intelhex | ||
pip3 install linkermap/ | ||
npm install --global xpm | ||
# 9.3.1-1.2.1 is xpack modified version which significantly increased compiled size to 6-7KB and cause flash overflow. | ||
# Skip this version for now, we will try again with next official release from ARM | ||
xpm install --global @xpack-dev-tools/[email protected] | ||
echo `echo $HOME/.local/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin` >> $GITHUB_PATH | ||
- name: Build | ||
run: | | ||
|
@@ -93,7 +106,7 @@ jobs: | |
- name: Linker Map | ||
run: make BOARD=${{ matrix.board }} linkermap | ||
|
||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.board }} | ||
path: _bin/${{ matrix.board }} | ||
|