ci: fix #13
Workflow file for this run
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 on Windows | ||
| on: | ||
| push: | ||
| branches: [ci-test] | ||
| workflow_dispatch: | ||
| jobs: | ||
| build: | ||
| runs-on: windows-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Install Xmake | ||
| uses: xmake-io/github-action-setup-xmake@v1 | ||
| with: | ||
| xmake-version: latest | ||
| - name: Clone plugin-sdk | ||
| run: | | ||
| git clone https://github.com/DK22Pac/plugin-sdk.git plugin-sdk | ||
| cd plugin-sdk | ||
| git checkout 050d18b6e1770477deab81a40028a40277583d97 | ||
| shell: powershell | ||
| - name: Set PLUGIN_SDK_DIR | ||
| run: echo "PLUGIN_SDK_DIR=${{ github.workspace }}\plugin-sdk" >> $GITHUB_ENV | ||
| shell: bash | ||
| - name: Build plugin-sdk | ||
| uses: microsoft/setup-msbuild@v1 | ||
| run: | | ||
| cd plugin-sdk/tools/premake | ||
| ./premake5.exe vs2019 | ||
| msbuild plugin.sln /p:Configuration=Release | ||
| shell: powershell | ||
| - name: Build server | ||
| run: xmake build server | ||
| - name: Build proxy | ||
| run: xmake build proxy | ||
| - name: Build client | ||
| run: xmake build client | ||
| env: | ||
| PLUGIN_SDK_DIR: ${{ github.workspace }}\plugin-sdk | ||