add automated windows build

This commit is contained in:
EinTim23 2025-01-12 13:22:02 +01:00
parent 017b21dbeb
commit 3e16670a70
2 changed files with 31 additions and 5 deletions

View File

@ -1,4 +1,4 @@
name: Build and Package AppImage name: Build and Package AppImage and Windows Executable
on: on:
push: push:
@ -7,8 +7,8 @@ on:
pull_request: pull_request:
jobs: jobs:
build: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Checkout code - name: Checkout code
@ -58,7 +58,34 @@ jobs:
linuxdeploy --appdir=linux/AppDir --output appimage linuxdeploy --appdir=linux/AppDir --output appimage
- name: Upload AppImage artifact - name: Upload AppImage artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: PlayerLink-AppImage name: PlayerLink-AppImage
path: ./*.AppImage path: ./*.AppImage
build-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Set up CMake
uses: lukka/get-cmake@latest
with:
cmakeVersion: '3.22.0'
- name: Configure with CMake
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
- name: Build the project
run: cmake --build build --config Release
- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: PlayerLink-Windows-Executable
path: build/Release/*

View File

@ -11,7 +11,6 @@
#include <winrt/windows.storage.streams.h> #include <winrt/windows.storage.streams.h>
#include <chrono> #include <chrono>
#include <codecvt>
#include <filesystem> #include <filesystem>
#include "../backend.hpp" #include "../backend.hpp"