This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Enable workflow, fix macOS build #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
uses: turtlesec-no/get-ninja@main | |
- name: Build Foxogram | |
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 | |
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" |