Skip to content

Commit

Permalink
Try to use aseprite/get-ninja GitHub action in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 26, 2024
1 parent 6fa80b2 commit 0d022ee
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,11 @@ jobs:
enable_image: [on, off]
steps:
- uses: actions/checkout@v4
- uses: aseprite/get-ninja@ci
- uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Generating Makefiles
shell: bash
run: |
if [[ "${{ runner.os }}" == "Windows" ]] ; then
cmake . -G "NMake Makefiles" \
-DCLIP_ENABLE_IMAGE=${{ matrix.enable_image }}
else
cmake . -G "Unix Makefiles" \
-DCLIP_ENABLE_IMAGE=${{ matrix.enable_image }}
fi
run: cmake . -G "Ninja" -DCLIP_ENABLE_IMAGE=${{ matrix.enable_image }}
- name: Compiling
shell: bash
run: cmake --build .
Expand All @@ -41,11 +34,12 @@ jobs:
run:
shell: msys2 {0}
steps:
- uses: aseprite/get-ninja@main
- uses: msys2/setup-msys2@v2
with:
release: false
msystem: ${{matrix.sys}}
pacboy: cc:p cmake:p ninja:p
pacboy: cc:p cmake:p
- uses: actions/checkout@v4
- name: Generating Makefiles
run: cmake .
Expand Down

0 comments on commit 0d022ee

Please sign in to comment.