Files
VRCWT-OSC/.gitea/workflows/build-windows-exe.yml
every_holiday e3f497def4
Some checks failed
build-windows-exe / build (push) Failing after 30s
Use explicit cd in Gitea workflow
2026-06-24 00:55:26 +09:00

51 lines
1.4 KiB
YAML

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
go test ./...
- name: Build executables
shell: bash
run: |
cd VRWT_Tool/VRC_OSC
mkdir -p dist
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o dist/vrc_osc.exe ./cmd/vrc_osc
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