Switch CI/CD to build using ninja vs. make
By switching the CI/CD workflow to use CMake's `ninja` backend, the build time goes down considerably (~4.5 minutes to ~2) compared to GNU Make
This commit is contained in:
parent
54f588ce63
commit
51d2888b52
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -113,7 +113,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd 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 -G Ninja -DARM_NONE_EABI_TOOLCHAIN_PATH=${{ runner.temp }}/arm-none-eabi -DNRF5_SDK_PATH=${{ runner.temp }}/nrf5_sdk -DUSE_OPENOCD=1 -DBUILD_DFU=1 ../
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# Make and Upload DFU Package
|
# Make and Upload DFU Package
|
||||||
|
@ -126,7 +126,7 @@ jobs:
|
||||||
- name: Make pinetime-mcuboot-app
|
- name: Make pinetime-mcuboot-app
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
make pinetime-mcuboot-app
|
ninja pinetime-mcuboot-app
|
||||||
|
|
||||||
- name: Unzip DFU package
|
- name: Unzip DFU package
|
||||||
run: |
|
run: |
|
||||||
|
@ -145,7 +145,7 @@ jobs:
|
||||||
- name: Make pinetime-app
|
- name: Make pinetime-app
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
make pinetime-app
|
ninja pinetime-app
|
||||||
|
|
||||||
- name: Upload standalone firmware
|
- name: Upload standalone firmware
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
@ -159,7 +159,7 @@ jobs:
|
||||||
- name: Make pinetime-recovery
|
- name: Make pinetime-recovery
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
make pinetime-recovery
|
ninja pinetime-recovery
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# Finish
|
# Finish
|
||||||
|
|
Loading…
Reference in New Issue
Block a user