This commit is contained in:
parent
54082ee1bc
commit
157c1bd8ba
6 changed files with 31 additions and 3 deletions
26
.forgejo/workflows/build.yml
Normal file
26
.forgejo/workflows/build.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Build Go (Linux + Windows)
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker:docker://golang:1.24
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build binaries
|
||||
run: |
|
||||
cd src
|
||||
GOOS=linux GOARCH=amd64 go build -o raymarchgo-linux-amd64
|
||||
GOOS=windows GOARCH=amd64 go build -o raymarchgo-windows-amd64.exe
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: binaries
|
||||
path: |
|
||||
builds/raymarchgo-linux-amd64
|
||||
builds/raymarchgo-windows-amd64.exe
|
||||
Loading…
Add table
Add a link
Reference in a new issue