Skip to content

Commit

Permalink
Merge pull request #266 from adafruit/fix-ci
Browse files Browse the repository at this point in the history
Fix ci
  • Loading branch information
hathach committed May 17, 2022
2 parents cc8ea2b + daabc3d commit 150a8a5
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/githubci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/arm-none-eabi-gcc@9.3.1-1.1.1
echo `echo $HOME/.local/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin` >> $GITHUB_PATH
- name: Build
run: |
Expand All @@ -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 }}
Expand Down

0 comments on commit 150a8a5

Please sign in to comment.