diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ab32396..9bca898 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,7 +33,7 @@ jobs: USE_AQTION: "TRUE" - name: Generate archive - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: q2admin-lin-x86_64 path: | @@ -67,10 +67,50 @@ jobs: USE_AQTION: "TRUE" - name: Generate archive - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: q2admin-lin-arm64 path: | build/gamearm64.so build/plugins build/config.lua + + windows_x86_64_build_q2admin: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + with: + repository: actionquake/q2admin + ref: ${{ github.ref }} + path: build + + - name: Setup MSVC Developer Command Prompt + uses: microsoft/setup-msbuild@v1.1 + + - name: Install Visual Studio C++ components + run: | + choco install visualstudio2022-workload-vctools + + - name: Install Lua dependencies + run: | + choco install lua51 + choco install luarocks + luarocks install luacheck + + - name: Build q2admin + working-directory: build + run: make -j2 V=1 + env: + CC: "cl" + USE_AQTION: "TRUE" + SHLIBEXT: "dll" + + - name: Generate archive + uses: actions/upload-artifact@v4 + with: + name: q2admin-win-x86_64 + path: | + build/gamex86_64.dll + build/plugins + build/config.lua +