refactor: refactor to Google style #7
This file contains 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
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Get BDS libraries | |
run: | | |
$bds_version = (Get-Content bds_version.txt) | |
$url = "https://github.com/LiteLDev/BDSLibrary/releases/download/$bds_version/bdslibrary-$bds_version-windows-amd64.zip" | |
Invoke-WebRequest -Uri $url -OutFile bds_lib.zip | |
Expand-Archive -Path bds_lib.zip -DestinationPath sdk/lib | |
- uses: xmake-io/github-action-setup-xmake@v1 | |
- run: | | |
xmake repo -u | |
- run: | | |
xmake f -a x64 -m release -p windows -v -y | |
- run: | | |
xmake -w -y | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: movinglight-windows-x64-${{ github.sha }} | |
path: | | |
build/windows/x64/release/MovingLight.dll | |
build/windows/x64/release/MovingLight.pdb |