Skip to content

Feat examples update #2

Feat examples update

Feat examples update #2

Workflow file for this run

name: ❓ Build examples
on:
pull_request:
jobs:
build:
strategy:
matrix:
examples: [camera, scenes, shmup, squares]
runs-on: ubuntu-latest
env:
DISPLAY: ':99.0'
defaults:
run:
shell: bash
steps:
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
- name: Xvfb
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Use local library
working-directory: examples/${{ matrix.examples }}
run: go mod edit -replace github.com/t-geindre/golem=../../
- name: Tests
working-directory: examples/${{ matrix.examples }}
run: go test -v ./...
- name: Build
working-directory: examples/${{ matrix.examples }}
run: go build -o /tmp/${{ matrix.examples }}