Install the Tecs CLI in GitHub Actions and cache its LÖVE
runtime, so tecs is on PATH for the rest of the job.
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: tecs-dev/setup-tecs@v1
- run: tecs check
- run: tecs build
- if: runner.os == 'macOS' # integ launches a real window; Linux CI has no display
run: tecs integ| Input | Default | Description |
|---|---|---|
version |
latest |
Shared Tecs release to install, e.g. 0.10.10. Pins the release. |
Pin a version to keep CI reproducible:
- uses: tecs-dev/setup-tecs@v1
with:
version: "0.10.10"- Downloads and runs the released installer (
install.shon Linux/macOS,install.ps1on Windows) into a job-local bin directory and adds it toPATH. - Caches the LÖVE runtime across runs (
actions/cache, keyed by OS + version) and pointsTECS_CACHE_DIRat it, so the runtime is downloaded once.
Runs on ubuntu-latest, macos-latest, and windows-latest.
Reference the moving major tag @v1 to get fixes automatically (e.g. when an install channel
changes), or pin a specific release like @v1.0.0.