diff --git a/.github/workflows/build-appimage.yml b/.github/workflows/build.yml similarity index 65% rename from .github/workflows/build-appimage.yml rename to .github/workflows/build.yml index ff03ac9..eae54c5 100644 --- a/.github/workflows/build-appimage.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build and Package AppImage +name: Build and Package AppImage and Windows Executable on: push: @@ -7,8 +7,8 @@ on: pull_request: jobs: - build: - runs-on: ubuntu-latest + build-linux: + runs-on: ubuntu-20.04 steps: - name: Checkout code @@ -58,7 +58,34 @@ jobs: linuxdeploy --appdir=linux/AppDir --output appimage - name: Upload AppImage artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: PlayerLink-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/* diff --git a/src/backends/windows.cpp b/src/backends/windows.cpp index f270e9e..0e9707c 100644 --- a/src/backends/windows.cpp +++ b/src/backends/windows.cpp @@ -11,7 +11,6 @@ #include #include -#include #include #include "../backend.hpp"