Skip to content

Disable ninja for Windows #39

Disable ninja for Windows

Disable ninja for Windows #39

Workflow file for this run

name: Build Desktop
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.8.0'
- name: Install Ninja
if: runner.os != 'Windows'
uses: turtlesec-no/get-ninja@main
- name: Build Foxogram
shell: pwsh
run: |
mkdir 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
shell: pwsh
run: |
if ($env:RUNNER_OS -eq "Windows") {
7z a foxogram-win.zip foxogram
}
elseif ($env:RUNNER_OS -eq "macOS") {
zip -r foxogram-macos.zip foxogram/foxogram.app
}
else {
zip -r foxogram-linux.zip foxogram
}
- name: Upload Release
uses: softprops/action-gh-release@v2
with:
name: Foxogram ${{ github.run_id }}
tag_name: foxogram-${{ github.run_id }}
files: "foxogram-*.zip"