Skip to content

Commit baa5954

Browse files
jharmer95JF002
authored andcommitted
Use CMake universal build command
Rather than using generator-specific build commands (ex. `make` or `ninja`), the CI build now uses `cmake --build` for a more modern, best practices approach.
1 parent 51d2888 commit baa5954

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ jobs:
125125

126126
- name: Make pinetime-mcuboot-app
127127
run: |
128-
cd build
129-
ninja pinetime-mcuboot-app
128+
cmake --build build --target pinetime-mcuboot-app
130129
131130
- name: Unzip DFU package
132131
run: |
@@ -144,8 +143,7 @@ jobs:
144143

145144
- name: Make pinetime-app
146145
run: |
147-
cd build
148-
ninja pinetime-app
146+
cmake --build build --target pinetime-app
149147
150148
- name: Upload standalone firmware
151149
uses: actions/upload-artifact@v2
@@ -158,8 +156,7 @@ jobs:
158156

159157
- name: Make pinetime-recovery
160158
run: |
161-
cd build
162-
ninja pinetime-recovery
159+
cmake --build build --target pinetime-recovery
163160
164161
#########################################################################################
165162
# Finish

0 commit comments

Comments
 (0)