Compare commits
3 Commits
rei/develo
...
test-selfh
Author | SHA1 | Date |
---|---|---|
Jean-François Milants | 3cceccd7c5 | |
Jean-François Milants | 215c229c0e | |
Jean-François Milants | e77f3c9bdf |
|
@ -22,34 +22,34 @@ jobs:
|
|||
build:
|
||||
|
||||
# Run these steps on Ubuntu
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
|
||||
#########################################################################################
|
||||
# Download and Cache Dependencies
|
||||
|
||||
- name: Install cmake
|
||||
uses: lukka/get-cmake@v3.18.3
|
||||
#- name: Install cmake
|
||||
# uses: lukka/get-cmake@v3.18.3
|
||||
|
||||
- name: Check cache for Embedded Arm Toolchain arm-none-eabi-gcc
|
||||
id: cache-toolchain
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-toolchain-9-2020-q2
|
||||
with:
|
||||
path: ${{ runner.temp }}/arm-none-eabi
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}
|
||||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}
|
||||
#- name: Check cache for Embedded Arm Toolchain arm-none-eabi-gcc
|
||||
# id: cache-toolchain
|
||||
# uses: actions/cache@v2
|
||||
# env:
|
||||
# cache-name: cache-toolchain-9-2020-q2
|
||||
# with:
|
||||
# path: ${{ runner.temp }}/arm-none-eabi
|
||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}
|
||||
# restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}
|
||||
|
||||
- name: Install Embedded Arm Toolchain arm-none-eabi-gcc
|
||||
if: steps.cache-toolchain.outputs.cache-hit != 'true' # Install toolchain if not found in cache
|
||||
uses: fiam/arm-none-eabi-gcc@v1.0.4
|
||||
with:
|
||||
# GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4")
|
||||
release: 9-2020-q2
|
||||
# Directory to unpack GCC to. Defaults to a temporary directory.
|
||||
directory: ${{ runner.temp }}/arm-none-eabi
|
||||
#- name: Install Embedded Arm Toolchain arm-none-eabi-gcc
|
||||
# if: steps.cache-toolchain.outputs.cache-hit != 'true' # Install toolchain if not found in cache
|
||||
# uses: fiam/arm-none-eabi-gcc@v1.0.4
|
||||
# with:
|
||||
# # GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4")
|
||||
# release: 9-2020-q2
|
||||
# # Directory to unpack GCC to. Defaults to a temporary directory.
|
||||
# directory: ${{ runner.temp }}/arm-none-eabi
|
||||
|
||||
- name: Check cache for nRF5 SDK
|
||||
id: cache-nrf5sdk
|
||||
|
@ -113,7 +113,7 @@ jobs:
|
|||
run: |
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=${{ runner.temp }}/arm-none-eabi -DNRF5_SDK_PATH=${{ runner.temp }}/nrf5_sdk -DUSE_OPENOCD=1 -DBUILD_DFU=1 ../
|
||||
cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=/home/alarm/nrf52/gcc-arm-none-eabi-9-2020-q2-update/ -DNRF5_SDK_PATH=${{ runner.temp }}/nrf5_sdk -DUSE_OPENOCD=1 -DBUILD_DFU=1 ../
|
||||
|
||||
#########################################################################################
|
||||
# Make and Upload DFU Package
|
||||
|
|
Loading…
Reference in New Issue