initial commit
All checks were successful
pedestrian-simulator / build (push) Successful in 53s

This commit is contained in:
2026-01-11 17:16:59 -07:00
parent c5d00dc9a9
commit 24ecddd034
18 changed files with 4506 additions and 4 deletions

View File

@@ -0,0 +1,46 @@
name: pedestrian-simulator
on:
push:
branches:
- main
- master
schedule:
- cron: "0 0 * * 5"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.x"
cache: true # enables Go module + build caching automatically
- name: Build server
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
run: |
cd server
go version
go build -a -ldflags "-w"
cp server ../pedestrian-simulator
cd ..
cp "$(go env GOROOT)/lib/time/zoneinfo.zip" .
cp /etc/ssl/certs/ca-certificates.crt .
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: registry.stevenpolley.net/pedestrian-simulator:latest
no-cache: true