rust-nex/.forgejo/workflows/build.yml

65 lines
1.6 KiB
YAML
Raw Normal View History

2026-04-26 00:32:38 +02:00
name: Build and Test
on:
push:
branches: ["**"]
pull_request:
env:
DOCKER_TLS_CERTDIR: /certs
2026-04-26 02:13:18 +02:00
IMAGE_TAG: ${{ github.sha }}
2026-04-26 00:32:38 +02:00
jobs:
splatoon:
runs-on: debian-trixie
2026-04-26 00:32:38 +02:00
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v4
with:
path: |
/var/lib/containers/storage
/run/containers/storage
~/.local/share/containers/storage
key: image-cache
- name: Login to registry
2026-04-26 02:05:33 +02:00
run: docker login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
2026-04-26 00:32:38 +02:00
- name: Build Splatoon edition
2026-04-26 01:30:10 +02:00
env:
2026-04-26 02:14:10 +02:00
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
2026-04-26 02:13:18 +02:00
CI_COMMIT_SHORT_SHA: ${{ github.sha }}
2026-04-26 00:32:38 +02:00
run: ./.ci-scripts/make-edition.sh splatoon
friends:
runs-on: debian-trixie
2026-04-26 00:32:38 +02:00
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v4
with:
path: |
/var/lib/containers/storage
/run/containers/storage
~/.local/share/containers/storage
key: image-cache
- name: Login to registry
2026-04-26 02:05:33 +02:00
run: podman login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
2026-04-26 00:32:38 +02:00
- name: Build Friends edition
2026-04-26 01:30:10 +02:00
env:
2026-04-26 02:14:10 +02:00
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
2026-04-26 02:13:18 +02:00
CI_COMMIT_SHORT_SHA: ${{ github.sha }}
2026-04-26 00:32:38 +02:00
run: ./.ci-scripts/make-edition.sh friends