Skip to content

separate for win and ubuntu #10

separate for win and ubuntu

separate for win and ubuntu #10

Workflow file for this run

name: Build project
on:
push:
branches: ["main"]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.x
- name: Install dependencies
run: go get .
- name: Build
run: go build -o ./build/ .
- name: Upload assets for ubuntu-latest
if: ${{ matrix.os }} == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: TheStoneProxy Linux
path: build/
- name: Upload assets for windows-latest
if: ${{ matrix.os }} == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: TheStoneProxy Windows
path: build/