Skip to content

Commit

Permalink
Disable ninja for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
krabiworld committed Dec 29, 2024
1 parent 881c6c4 commit 477dbb5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 51 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/Install-OpenSSL.ps1

This file was deleted.

17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,22 @@ jobs:
version: '6.8.0'

- name: Install Ninja
if: runner.os != 'Windows'
uses: turtlesec-no/get-ninja@main

- name: Install OpenSSL (Windows)
if: runner.os == 'Windows'
run: powershell.exe ./.github/workflows/Install-OpenSSL.ps1

- name: Build Foxogram
shell: pwsh
run: |
mkdir cmake-build
cmake -DCMAKE_BUILD_TYPE=Release -DIXWEBSOCKET_INSTALL:BOOL=OFF -DCMAKE_INSTALL_PREFIX=foxogram -G Ninja -B cmake-build
ninja -C cmake-build
if ($env:RUNNER_OS -eq "Windows") {
cmake -DCMAKE_BUILD_TYPE=Release -DIXWEBSOCKET_INSTALL:BOOL=OFF -DCMAKE_INSTALL_PREFIX=foxogram -B cmake-build
}
else {
cmake -DCMAKE_BUILD_TYPE=Release -DIXWEBSOCKET_INSTALL:BOOL=OFF -DCMAKE_INSTALL_PREFIX=foxogram -G Ninja -B cmake-build
ninja -C cmake-build
}
cmake --build cmake-build --target install
- name: Archive Foxogram
Expand Down

0 comments on commit 477dbb5

Please sign in to comment.