Update c-cpp.yml

This commit is contained in:
Lee Lup Yuen 2020-07-22 10:28:26 +08:00 committed by GitHub
parent e5930d54ed
commit 03bfc7e3db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -58,7 +58,7 @@ jobs:
uses: actions/checkout@v2
- name: Show Files
run: set ; pwd ; ls -l ~
run: set ; pwd ; ls -l
- name: CMake
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 ../
@ -66,5 +66,13 @@ jobs:
- name: Make -j
run: cd build && make pinetime-app
- name: Upload the Built Firmware
uses: actions/upload-artifact@v2
with:
# Artifact name
name: firmware # optional
# A file, directory or wildcard pattern that describes what to upload
path: /home/runner/work/pinetime-lab/pinetime-lab/README.md # TODO
# Embedded Arm Toolchain and nRF5 SDK will only be cached if the build succeeds.
# So make sure that the first build always succeeds, e.g. comment out the "Make" step.