summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Lup Yuen <luppy@appkaki.com>2020-07-21 20:04:37 (GMT)
committerGitHub <noreply@github.com>2020-07-21 20:04:37 (GMT)
commitde7bd924b87db6a30ef63f7ee28872c23dfa6eb2 (patch)
tree6fedfa7311f0775df9510a1c13a7a99564155335
parentbd982816afab6bd9d75a76cc42eec3cc3a5285a2 (diff)
Update c-cpp.yml
-rw-r--r--.github/workflows/c-cpp.yml17
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index ad4e1e0..2870b82 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -36,11 +36,26 @@ jobs:
# Directory to unpack GCC to. Defaults to a temporary directory.
directory: ~/arm-none-eabi
+ - name: Cache nRF5 SDK
+ uses: actions/cache@v2
+ env:
+ cache-name: cache-nrf5sdk
+ with:
+ path: ~/nrf5_sdk
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+ ${{ runner.os }}-
+
+ - name: Install nRF5 SDK
+ run: cd ~ && curl https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.3.0_59ac345.zip -o nrf5_sdk.zip && unzip nrf5_sdk.zip && mv nRF5_SDK_15.3.0_59ac345 nrf5_sdk
+
- name: Checkout source files
uses: actions/checkout@v2
- name: Show Files
- run: set ; pwd ; ls -l $HOME ; wget
+ run: set ; pwd ; ls -l ~
- name: cmake
run: mkdir -p build && cd build && cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=~/arm-none-eabi -DNRF5_SDK_PATH=~/nrf5_sdk -DUSE_OPENOCD=1 ../