Skip to content

Commit 51d2888

Browse files
jharmer95JF002
authored andcommitted
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
1 parent 54f588c commit 51d2888

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
run: |
114114
mkdir -p build
115115
cd build
116-
cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=${{ runner.temp }}/arm-none-eabi -DNRF5_SDK_PATH=${{ runner.temp }}/nrf5_sdk -DUSE_OPENOCD=1 -DBUILD_DFU=1 ../
116+
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 ../
117117
118118
#########################################################################################
119119
# Make and Upload DFU Package
@@ -126,7 +126,7 @@ jobs:
126126
- name: Make pinetime-mcuboot-app
127127
run: |
128128
cd build
129-
make pinetime-mcuboot-app
129+
ninja pinetime-mcuboot-app
130130
131131
- name: Unzip DFU package
132132
run: |
@@ -145,7 +145,7 @@ jobs:
145145
- name: Make pinetime-app
146146
run: |
147147
cd build
148-
make pinetime-app
148+
ninja pinetime-app
149149
150150
- name: Upload standalone firmware
151151
uses: actions/upload-artifact@v2
@@ -159,7 +159,7 @@ jobs:
159159
- name: Make pinetime-recovery
160160
run: |
161161
cd build
162-
make pinetime-recovery
162+
ninja pinetime-recovery
163163
164164
#########################################################################################
165165
# Finish

0 commit comments

Comments
 (0)