name: build-windows-exe on: push: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout shell: bash run: | git clone --depth 1 https://git.vrcworldtour.com/every_holiday/VRCWT-OSC.git . - name: Install Go shell: bash run: | sudo apt-get update sudo apt-get install -y golang-go go version - name: Test shell: bash run: | cd VRWT_Tool/VRC_OSC GO111MODULE=on go test ./... - name: Build executables shell: bash run: | cd VRWT_Tool/VRC_OSC mkdir -p dist GO111MODULE=on GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o dist/vrc_osc.exe ./cmd/vrc_osc GO111MODULE=on GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o dist/vrwt_tool.exe ./cmd/vrwt_tool - name: Package executables shell: bash run: | cd VRWT_Tool/VRC_OSC cp config/config.example.toml dist/config.example.toml cp config/secrets.example.toml dist/secrets.example.toml cp config/guests.example.txt dist/guests.example.txt (cd dist && zip -r vrc_osc-windows.zip vrc_osc.exe vrwt_tool.exe config.example.toml secrets.example.toml guests.example.txt) - name: Upload artifact uses: actions/upload-artifact@v4 with: name: vrc_osc-windows path: VRWT_Tool/VRC_OSC/dist/vrc_osc-windows.zip