33 lines
901 B
YAML
33 lines
901 B
YAML
# Builds and verifies the image for every supported Project Zomboid version.
|
|
# Requires a runner with a Docker (or Podman) CLI and access to its daemon.
|
|
name: ci
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
image:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
# One entry per supported version; add older Steam version branches
|
|
# (e.g. pz_version 42.19, steam_branch 42.19) to keep them building.
|
|
- pz_version: "42.21"
|
|
steam_branch: public
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
# release.sh derives the version from the newest v* tag
|
|
fetch-depth: 0
|
|
|
|
- name: Build and verify
|
|
env:
|
|
IMAGE: zomboidforge-ci
|
|
PZ_VERSION: ${{ matrix.pz_version }}
|
|
PZ_BRANCH: ${{ matrix.steam_branch }}
|
|
PUBLISH: "false"
|
|
run: ci/release.sh
|