Skip to content

Commit 0907fc4

Browse files
committed
Try to use aseprite/get-ninja GitHub action in workflows
1 parent 6fa80b2 commit 0907fc4

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,11 @@ jobs:
1010
enable_image: [on, off]
1111
steps:
1212
- uses: actions/checkout@v4
13+
- uses: aseprite/get-ninja@ci
1314
- uses: ilammy/msvc-dev-cmd@v1
1415
if: runner.os == 'Windows'
1516
- name: Generating Makefiles
16-
shell: bash
17-
run: |
18-
if [[ "${{ runner.os }}" == "Windows" ]] ; then
19-
cmake . -G "NMake Makefiles" \
20-
-DCLIP_ENABLE_IMAGE=${{ matrix.enable_image }}
21-
else
22-
cmake . -G "Unix Makefiles" \
23-
-DCLIP_ENABLE_IMAGE=${{ matrix.enable_image }}
24-
fi
17+
run: cmake . -G "Ninja" -DCLIP_ENABLE_IMAGE=${{ matrix.enable_image }}
2518
- name: Compiling
2619
shell: bash
2720
run: cmake --build .
@@ -41,11 +34,12 @@ jobs:
4134
run:
4235
shell: msys2 {0}
4336
steps:
37+
- uses: aseprite/get-ninja@ci
4438
- uses: msys2/setup-msys2@v2
4539
with:
4640
release: false
4741
msystem: ${{matrix.sys}}
48-
pacboy: cc:p cmake:p ninja:p
42+
pacboy: cc:p cmake:p
4943
- uses: actions/checkout@v4
5044
- name: Generating Makefiles
5145
run: cmake .

0 commit comments

Comments
 (0)