Skip to content

Commit

Permalink
ci: use ninja generator for yasm jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Sep 4, 2023
1 parent 32a51bf commit cf8bbbe
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/CMake-MSVC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,23 @@ jobs:
# windows-2022: VS2022
# windows-2019: VS2019
os: [windows-2022, windows-2019]
arch: [Win32, x64, ARM, ARM64]
arch: [x86, x64, amd64_arm, amd64_arm64]
shared: [ON, OFF]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: vcvars
uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.arch }}
with:
arch: ${{ matrix.platform.msvc-arch }}
- name: install ninja
uses: turtlesec-no/get-ninja@main
- name: fetch yasm
run: python -c "from urllib.request import urlretrieve; urlretrieve('http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe', 'yasm.exe')"
- name: add yasm to path
run: echo "%GITHUB_WORKSPACE%" >> %GITHUB_PATH%
- name: CMake
run: cd ports\cmake && cmake -A ${{ matrix.arch }} -DYASM_ASSEMBLER=%GITHUB_WORKSPACE%\yasm -DBUILD_SHARED_LIBS=${{ matrix.shared }} .
run: cmake -S ports/cmake -B build -DYASM_ASSEMBLER=%GITHUB_WORKSPACE%\yasm -DBUILD_SHARED_LIBS=${{ matrix.shared }}-GNinja
- name: CMake --build
run: cd ports\cmake && cmake --build .
run: cmake --build build

0 comments on commit cf8bbbe

Please sign in to comment.