Skip to content

Create nest.yml

Create nest.yml #2

Workflow file for this run

name: Go Server
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Build Linux server binary
run: |
go build -o tchat-server-linux ./server/main.go
- name: Build Windows server binary
run: |
GOOS=windows GOARCH=amd64 go build -o tchat-server.exe ./server/main.go
- name: Upload Linux server binary
uses: actions/upload-artifact@v4
with:
name: tchat-server-linux
path: tchat-server-linux
- name: Upload Windows server binary
uses: actions/upload-artifact@v4
with:
name: tchat-server-windows
path: tchat-server.exe