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

224 lines
6.2 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 03:21:36 +02:00
SHORT_SHA: ${{ github.sha }}
2026-04-26 00:32:38 +02:00
jobs:
2026-05-02 17:14:50 +02:00
minecraft-wiiu:
runs-on: debian-trixie
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
run: docker login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
- name: Set short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
- name: Build Minecraft Wii U edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
run: ./.ci-scripts/make-edition.sh minecraft-wiiu
2026-04-29 07:14:16 +02:00
splatoon-testfire:
runs-on: debian-trixie
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
run: docker login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
- name: Set short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
- name: Build Splatoon Testfire edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
run: ./.ci-scripts/make-edition.sh splatoon-testfire
fast-racing-neo:
runs-on: debian-trixie
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
run: docker login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
- name: Set short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
- name: Build Fast Racing NEO edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
run: ./.ci-scripts/make-edition.sh fast-racing-neo
wii-u-chat:
runs-on: debian-trixie
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
run: docker login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
- name: Set short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
- name: Build Wii U Chat edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
run: ./.ci-scripts/make-edition.sh wii-u-chat
2026-04-26 00:32:38 +02:00
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
2026-04-26 03:21:36 +02:00
- name: Set short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
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 03:21:36 +02:00
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_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
2026-04-26 03:21:36 +02:00
- name: Set short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
2026-04-26 00:32:38 +02:00
- 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 03:21:36 +02:00
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
2026-04-26 16:41:40 +02:00
DATABASE_URL: ${{ secrets.DATABASE_FRIENDS }}
2026-04-26 00:32:38 +02:00
run: ./.ci-scripts/make-edition.sh friends
2026-04-26 16:12:31 +02:00
super-mario-maker:
runs-on: debian-trixie
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: Set short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
- name: Login to registry
run: podman login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
2026-04-26 16:41:40 +02:00
- name: Build Super Mario Maker edition
2026-04-26 16:12:31 +02:00
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
2026-04-26 16:41:40 +02:00
DATABASE_URL: ${{ secrets.DATABASE_SMM }}
2026-04-26 16:12:31 +02:00
run: ./.ci-scripts/make-edition.sh super-mario-maker