diff options
| author | Ha Thach <[email protected]> | 2021-01-25 17:18:24 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-25 17:18:24 +0700 |
| commit | c43ac7f1d79b25dae2d5ab073dc7d397fd9dedec (patch) | |
| tree | 8086106787ab4b044deca2a5682d74e2f09eec1d /.github/workflows | |
| parent | 469ca2f1559800f4b1eabc860336ff33ed118718 (diff) | |
| parent | 6e027b1c4b454a573c6bcb9599d016d98bb6d05a (diff) | |
Merge pull request #603 from hathach/pico-followup
Pico followup for (ci) building examples
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1732027f..bf1c63d3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: family: - 'imxrt' - 'nrf' - #- 'rp2040' + - 'rp2040' - 'samd21' - 'samd51' - 'stm32f4' @@ -94,22 +94,34 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v1 - - name: Cache MSP430 Toolchain + - name: Checkout TinyUSB + uses: actions/checkout@v2 + with: + submodules: 'true' + + - name: Checkout Sub-Submodules + run: | + # some submodule has it own submodules that need to be fetched as well + git submodule update --init --recursive hw/mcu/microchip + git submodule update --init --recursive lib/FreeRTOS + + # Add msp430-gcc url to env + echo >> $GITHUB_ENV MSP430_GCC_URL=http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-9.2.0.50_linux64.tar.bz2 + + - name: Cache MSP430-GCC uses: actions/cache@v2 id: cache-msp430 with: - path: /tmp/dl/ - # Increment gcc version number at end when updating downloads - key: ${{ runner.os }}-msp430-9.2.0.50 + path: ~/cache/ + key: ${{ runner.os }}-21-01-26-${{ env.MSP430_GCC_URL }} - - name: Install MSP430 Toolchain + - name: Install MSP430-GCC if: steps.cache-msp430.outputs.cache-hit != 'true' - env: - MSP430GCC_URL: http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-9.2.0.50_linux64.tar.bz2 run: | - mkdir -p /tmp/dl/ - [ -f "/tmp/dl/msp430-gcc.tar.bz2" ] || wget --progress=dot:mega $MSP430GCC_URL -O /tmp/dl/msp430-gcc.tar.bz2 - tar -C $HOME -xaf /tmp/dl/msp430-gcc.tar.bz2 + # MSP430 GCC + mkdir -p ~/cache/msp430-gcc + wget --progress=dot:mega $MSP430_GCC_URL -O msp430-gcc.tar.bz2 + tar -C ~/cache/msp430-gcc -xaf msp430-gcc.tar.bz2 - name: Install Toolchains run: | @@ -119,20 +131,9 @@ jobs: xpm install --global @xpack-dev-tools/riscv-none-embed-gcc@latest echo `echo $HOME/opt/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin` >> $GITHUB_PATH echo `echo $HOME/opt/xPacks/@xpack-dev-tools/riscv-none-embed-gcc/*/.content/bin` >> $GITHUB_PATH - + # TI MSP430 GCC - echo `echo $HOME/msp430-gcc-*_linux64/bin` >> $GITHUB_PATH - - - name: Checkout TinyUSB - uses: actions/checkout@v2 - with: - submodules: 'true' - - - name: Checkout Sub-Submodules - run: | - # some submodule has it own submodules that need to be fetched as well - git submodule update --init --recursive hw/mcu/microchip - git submodule update --init --recursive lib/FreeRTOS + echo >> $GITHUB_PATH `echo ~/cache/msp430-gcc/msp430-gcc-*/bin` - name: Build run: python3 tools/build_board.py ${{ matrix.example }} |
