Compare commits

..
Author SHA1 Message Date
5b57ca642d Update Rust crate serde_json to v1.0.151
All checks were successful
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Successful in 9m29s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Successful in 11m41s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Successful in 12m28s
Build and Test / build-editions (mario-tennis) (push) Successful in 6m22s
Build and Test / build-editions (fast-racing-neo) (push) Successful in 6m26s
Build and Test / build-editions (minecraft-wiiu) (push) Successful in 6m24s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Successful in 6m32s
Build and Test / build-editions (sonic-transformed) (push) Successful in 6m19s
Build and Test / build-editions (splatoon) (push) Successful in 6m5s
Build and Test / build-editions (splatoon-testfire) (push) Successful in 6m5s
Build and Test / build-editions (terraria) (push) Successful in 5m59s
Build and Test / build-editions (wii-u-chat) (push) Successful in 6m3s
2026-08-08 04:47:54 +00:00
66ebc2a9f0 Merge pull request 'Update Rust crate thiserror to v2.0.19' (#59) from renovate/thiserror-2.x-lockfile into v0
All checks were successful
Build and Test / build-editions (splatoon-testfire) (push) Successful in 4m31s
Build and Test / build-editions (terraria) (push) Successful in 4m34s
Build and Test / build-editions (mario-tennis) (push) Successful in 4m40s
Build and Test / build-editions (sonic-transformed) (push) Successful in 5m5s
Build and Test / build-editions (fast-racing-neo) (push) Successful in 5m8s
Build and Test / build-editions (splatoon) (push) Successful in 5m11s
Build and Test / build-editions (wii-u-chat) (push) Successful in 5m11s
Build and Test / build-editions (minecraft-wiiu) (push) Successful in 5m25s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Successful in 5m28s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Successful in 5m28s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Successful in 5m29s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Successful in 5m30s
Reviewed-on: #59
2026-08-08 06:43:04 +02:00
476f8c7be3 Merge pull request 'Update Rust crate nex-account to v0.2.5' (#56) from renovate/nex-account-0.x-lockfile into v0
Some checks failed
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Has been cancelled
Build and Test / build-editions (minecraft-wiiu) (push) Has been cancelled
Build and Test / build-editions (splatoon-testfire) (push) Has been cancelled
Build and Test / build-editions (fast-racing-neo) (push) Has been cancelled
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Has been cancelled
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Has been cancelled
Build and Test / build-editions (sonic-transformed) (push) Has been cancelled
Build and Test / build-editions (splatoon) (push) Has been cancelled
Build and Test / build-editions (mario-tennis) (push) Has been cancelled
Build and Test / build-editions (terraria) (push) Has been cancelled
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Has been cancelled
Build and Test / build-editions (wii-u-chat) (push) Has been cancelled
Reviewed-on: #56
2026-08-08 06:42:58 +02:00
43191de687 Merge pull request 'Update Rust crate async-trait to v0.1.91' (#53) from renovate/async-trait-0.x-lockfile into v0
Some checks failed
Build and Test / build-editions (sonic-transformed) (push) Has been cancelled
Build and Test / build-editions (splatoon) (push) Has been cancelled
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Has been cancelled
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Has been cancelled
Build and Test / build-editions (fast-racing-neo) (push) Has been cancelled
Build and Test / build-editions (minecraft-wiiu) (push) Has been cancelled
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Has been cancelled
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Has been cancelled
Build and Test / build-editions (terraria) (push) Has been cancelled
Build and Test / build-editions (mario-tennis) (push) Has been cancelled
Build and Test / build-editions (wii-u-chat) (push) Has been cancelled
Build and Test / build-editions (splatoon-testfire) (push) Has been cancelled
Reviewed-on: #53
2026-08-08 06:42:53 +02:00
f04e85d496 drop musl support
All checks were successful
Build and Test / build-editions (fast-racing-neo) (push) Successful in 7m10s
Build and Test / build-editions (mario-tennis) (push) Successful in 7m13s
Build and Test / build-editions (wii-u-chat) (push) Successful in 7m32s
Build and Test / build-editions (splatoon) (push) Successful in 7m39s
Build and Test / build-editions (sonic-transformed) (push) Successful in 7m41s
Build and Test / build-editions (terraria) (push) Successful in 7m42s
Build and Test / build-editions (splatoon-testfire) (push) Successful in 7m44s
Build and Test / build-editions (minecraft-wiiu) (push) Successful in 7m45s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Successful in 7m47s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Successful in 7m46s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Successful in 7m47s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Successful in 7m46s
it was a hard 3 minutes of thinking but i realized we run containers anyways so??? it was kinda useless
2026-08-08 06:31:07 +02:00
bfc1482328 i dont like spamming commits but its the only way to test ci
Some checks failed
Build and Test / build-editions (splatoon) (push) Failing after 1m18s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 1m18s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 1m22s
Build and Test / build-editions (mario-tennis) (push) Failing after 1m23s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 1m17s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 1m21s
Build and Test / build-editions (terraria) (push) Failing after 1m23s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 1m23s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 1m25s
Build and Test / build-editions (wii-u-chat) (push) Failing after 1m18s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 1m23s
Build and Test / build-editions (sonic-transformed) (push) Failing after 1m24s
2026-08-08 06:24:45 +02:00
2a069d16e9 yeah i accept it
Some checks failed
Build and Test / build-editions (sonic-transformed) (push) Failing after 1m21s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 1m23s
Build and Test / build-editions (terraria) (push) Failing after 1m23s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 1m25s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 1m25s
Build and Test / build-editions (wii-u-chat) (push) Failing after 1m17s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 1m19s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 1m19s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 1m18s
Build and Test / build-editions (splatoon) (push) Failing after 1m19s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 1m19s
Build and Test / build-editions (mario-tennis) (push) Failing after 1m20s
2026-08-08 06:20:48 +02:00
87c9eedac0 oh right its a workspace
Some checks failed
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 1m14s
Build and Test / build-editions (sonic-transformed) (push) Failing after 1m13s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 1m14s
Build and Test / build-editions (splatoon) (push) Failing after 1m14s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 1m14s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 1m15s
Build and Test / build-editions (terraria) (push) Failing after 1m16s
Build and Test / build-editions (wii-u-chat) (push) Failing after 1m17s
Build and Test / build-editions (mario-tennis) (push) Failing after 1m16s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 1m18s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 1m18s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 1m18s
listen guys, its 6am, ive been working at this all night, have some mercy, ok?
2026-08-08 06:18:01 +02:00
abda534e17 please work
Some checks failed
Build and Test / build-editions (splatoon) (push) Failing after 7s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 8s
Build and Test / build-editions (sonic-transformed) (push) Failing after 8s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 9s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 9s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 9s
Build and Test / build-editions (terraria) (push) Failing after 10s
Build and Test / build-editions (mario-tennis) (push) Failing after 10s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 11s
Build and Test / build-editions (wii-u-chat) (push) Failing after 11s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 12s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 12s
2026-08-08 06:13:32 +02:00
0f6546f717 vendor OpenSSL
Some checks failed
Build and Test / build-editions (terraria) (push) Failing after 1m17s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 1m18s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 1m19s
Build and Test / build-editions (splatoon) (push) Failing after 1m20s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 1m21s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 1m21s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 1m12s
Build and Test / build-editions (sonic-transformed) (push) Failing after 1m15s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 1m14s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 1m16s
Build and Test / build-editions (wii-u-chat) (push) Failing after 1m17s
Build and Test / build-editions (mario-tennis) (push) Failing after 1m17s
yes, build time goes up but my worries go down.
2026-08-08 06:06:44 +02:00
6a4764082d remove statically linked openSSL
Some checks failed
Build and Test / build-editions (wii-u-chat) (push) Failing after 1m10s
Build and Test / build-editions (sonic-transformed) (push) Failing after 1m11s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 1m13s
Build and Test / build-editions (splatoon) (push) Failing after 1m13s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 1m13s
Build and Test / build-editions (terraria) (push) Failing after 1m14s
Build and Test / build-editions (mario-tennis) (push) Failing after 1m14s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 1m16s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 1m16s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 1m16s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 1m16s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 1m16s
it just causes us grief for something that can be easily avoided by just using minimal alpine images. we can revisit it later if needed.
2026-08-08 06:02:45 +02:00
25d58b3083 attempt fix
Some checks failed
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 1m13s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 1m15s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 1m15s
Build and Test / build-editions (mario-tennis) (push) Failing after 1m15s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 1m15s
Build and Test / build-editions (splatoon) (push) Failing after 1m15s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 1m16s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 1m16s
Build and Test / build-editions (terraria) (push) Failing after 1m16s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 1m16s
Build and Test / build-editions (sonic-transformed) (push) Failing after 1m17s
Build and Test / build-editions (wii-u-chat) (push) Failing after 1m6s
2026-08-08 05:58:08 +02:00
9a621ed6bd CI refactor
Some checks failed
Build and Test / build-editions (terraria) (push) Failing after 1m12s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 1m15s
Build and Test / build-editions (wii-u-chat) (push) Failing after 1m16s
Build and Test / build-editions (splatoon) (push) Failing after 1m16s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 1m16s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 1m16s
Build and Test / build-editions (mario-tennis) (push) Failing after 1m17s
Build and Test / build-editions (sonic-transformed) (push) Failing after 1m17s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 1m18s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 1m18s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 1m18s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 1m18s
2026-08-08 05:53:38 +02:00
7c5ed826f4 merge 2026-08-08 05:38:15 +02:00
7e507c7f68 fix pesky bug preventing v0 from working 2026-08-08 05:33:34 +02:00
535051be75 Update Rust crate thiserror to v2.0.19
All checks were successful
Build and Test / splatoon (push) Successful in 25m52s
Build and Test / terraria (push) Successful in 25m52s
Build and Test / splatoon-testfire (push) Successful in 26m47s
Build and Test / sonic-transformed (push) Successful in 2m56s
Build and Test / wii-u-chat (push) Successful in 16m39s
Build and Test / minecraft-wiiu (push) Successful in 19m14s
Build and Test / mario-tennis (push) Successful in 19m17s
Build and Test / fast-racing-neo (push) Successful in 19m21s
Build and Test / friends (push) Successful in 19m25s
Build and Test / puyopuyo (push) Successful in 19m32s
Build and Test / wii-sports-club (push) Successful in 19m36s
Build and Test / super-mario-maker (push) Successful in 20m7s
2026-08-08 03:02:10 +00:00
e433de67f3 Merge pull request 'Add Terraria Edition' (#45) from feat/terraria into v0
All checks were successful
Build and Test / super-mario-maker (push) Successful in 7m8s
Build and Test / puyopuyo (push) Successful in 7m31s
Build and Test / friends (push) Successful in 7m31s
Build and Test / terraria (push) Successful in 11m7s
Build and Test / sonic-transformed (push) Successful in 5m40s
Build and Test / mario-tennis (push) Successful in 5m50s
Build and Test / wii-u-chat (push) Successful in 5m59s
Build and Test / fast-racing-neo (push) Successful in 6m4s
Build and Test / splatoon-testfire (push) Successful in 6m23s
Build and Test / wii-sports-club (push) Successful in 6m26s
Build and Test / splatoon (push) Successful in 6m34s
Build and Test / minecraft-wiiu (push) Successful in 6m50s
Reviewed-on: #45
2026-08-08 04:17:57 +02:00
0b970c3be2 Merge branch 'v0' into feat/terraria
Some checks failed
Build and Test / fast-racing-neo (push) Has been cancelled
Build and Test / sonic-transformed (push) Has been cancelled
Build and Test / splatoon (push) Has been cancelled
Build and Test / puyopuyo (push) Has been cancelled
Build and Test / wii-sports-club (push) Has been cancelled
Build and Test / mario-tennis (push) Has been cancelled
Build and Test / minecraft-wiiu (push) Has been cancelled
Build and Test / splatoon-testfire (push) Has been cancelled
Build and Test / wii-u-chat (push) Has been cancelled
Build and Test / terraria (push) Has been cancelled
Build and Test / friends (push) Has been cancelled
Build and Test / super-mario-maker (push) Has been cancelled
2026-08-08 04:17:51 +02:00
2a0d3c40e7 Merge pull request 'Update Rust crate anyhow to v1.0.104' (#52) from renovate/anyhow-1.x-lockfile into v0
Some checks failed
Build and Test / fast-racing-neo (push) Has been cancelled
Build and Test / wii-sports-club (push) Has been cancelled
Build and Test / splatoon-testfire (push) Has been cancelled
Build and Test / puyopuyo (push) Has been cancelled
Build and Test / sonic-transformed (push) Has been cancelled
Build and Test / minecraft-wiiu (push) Has been cancelled
Build and Test / splatoon (push) Has been cancelled
Build and Test / friends (push) Has been cancelled
Build and Test / wii-u-chat (push) Has been cancelled
Build and Test / super-mario-maker (push) Has been cancelled
Build and Test / mario-tennis (push) Has been cancelled
Reviewed-on: #52
2026-08-08 04:17:41 +02:00
ea928ab6dd Update Rust crate nex-account to v0.2.5
All checks were successful
Build and Test / fast-racing-neo (push) Successful in 9m1s
Build and Test / splatoon-testfire (push) Successful in 9m21s
Build and Test / wii-u-chat (push) Successful in 9m26s
Build and Test / minecraft-wiiu (push) Successful in 9m31s
Build and Test / wii-sports-club (push) Successful in 10m23s
Build and Test / sonic-transformed (push) Successful in 10m51s
Build and Test / super-mario-maker (push) Successful in 10m57s
Build and Test / mario-tennis (push) Successful in 16m30s
Build and Test / splatoon (push) Successful in 16m32s
Build and Test / puyopuyo (push) Successful in 17m29s
Build and Test / friends (push) Successful in 19m50s
2026-08-08 01:47:42 +00:00
fc54e6f77a Update Rust crate async-trait to v0.1.91
All checks were successful
Build and Test / splatoon (push) Successful in 13m2s
Build and Test / fast-racing-neo (push) Successful in 13m32s
Build and Test / splatoon-testfire (push) Successful in 13m48s
Build and Test / puyopuyo (push) Successful in 13m51s
Build and Test / wii-u-chat (push) Successful in 13m43s
Build and Test / minecraft-wiiu (push) Successful in 15m19s
Build and Test / mario-tennis (push) Successful in 15m24s
Build and Test / wii-sports-club (push) Successful in 15m53s
Build and Test / sonic-transformed (push) Successful in 16m33s
Build and Test / super-mario-maker (push) Successful in 2m51s
Build and Test / friends (push) Successful in 3m37s
2026-08-08 01:47:11 +00:00
ba57a33483 Update Rust crate anyhow to v1.0.104
All checks were successful
Build and Test / fast-racing-neo (push) Successful in 7m32s
Build and Test / splatoon (push) Successful in 7m53s
Build and Test / wii-u-chat (push) Successful in 7m53s
Build and Test / sonic-transformed (push) Successful in 8m2s
Build and Test / friends (push) Successful in 8m57s
Build and Test / super-mario-maker (push) Successful in 9m16s
Build and Test / splatoon-testfire (push) Successful in 9m17s
Build and Test / wii-sports-club (push) Successful in 9m19s
Build and Test / minecraft-wiiu (push) Successful in 9m19s
Build and Test / mario-tennis (push) Successful in 11m23s
Build and Test / puyopuyo (push) Successful in 15m51s
2026-08-08 01:47:05 +00:00
95ac6d922b Merge branch 'v0' into feat/terraria
All checks were successful
Build and Test / friends (push) Successful in 4m21s
Build and Test / wii-u-chat (push) Successful in 6m0s
Build and Test / minecraft-wiiu (push) Successful in 6m2s
Build and Test / mario-tennis (push) Successful in 6m14s
Build and Test / splatoon-testfire (push) Successful in 6m27s
Build and Test / sonic-transformed (push) Successful in 6m28s
Build and Test / fast-racing-neo (push) Successful in 6m33s
Build and Test / wii-sports-club (push) Successful in 6m34s
Build and Test / splatoon (push) Successful in 3m34s
Build and Test / puyopuyo (push) Successful in 6m43s
Build and Test / terraria (push) Successful in 3m32s
Build and Test / super-mario-maker (push) Successful in 3m58s
2026-08-08 03:39:54 +02:00
36621bc19d Merge branch 'v0' into feat/terraria
Some checks failed
Build and Test / splatoon (push) Successful in 7m17s
Build and Test / wii-u-chat (push) Successful in 7m35s
Build and Test / sonic-transformed (push) Successful in 7m38s
Build and Test / super-mario-maker (push) Successful in 6m44s
Build and Test / fast-racing-neo (push) Successful in 7m38s
Build and Test / terraria (push) Has been cancelled
Build and Test / puyopuyo (push) Successful in 7m45s
Build and Test / wii-sports-club (push) Successful in 7m48s
Build and Test / minecraft-wiiu (push) Successful in 7m54s
Build and Test / mario-tennis (push) Successful in 9m54s
Build and Test / friends (push) Failing after 2m47s
Build and Test / splatoon-testfire (push) Successful in 7m11s
2026-08-08 03:24:54 +02:00
8393ad3656 Add Terraria Edition
Some checks failed
Build and Test / friends (push) Failing after 5m30s
Build and Test / splatoon-testfire (push) Successful in 5m48s
Build and Test / fast-racing-neo (push) Successful in 6m17s
Build and Test / wii-u-chat (push) Successful in 6m32s
Build and Test / wii-sports-club (push) Successful in 7m38s
Build and Test / mario-tennis (push) Successful in 7m39s
Build and Test / puyopuyo (push) Successful in 7m40s
Build and Test / sonic-transformed (push) Successful in 7m42s
Build and Test / splatoon (push) Successful in 7m49s
Build and Test / minecraft-wiiu (push) Successful in 7m51s
Build and Test / super-mario-maker (push) Successful in 8m10s
Build and Test / terraria (push) Successful in 11m8s
2026-08-07 18:18:04 +02:00
10 changed files with 152 additions and 431 deletions

View file

@ -1,15 +1,32 @@
#!/usr/bin/env bash
export EDITION=$1
source /etc/environment
: "${RNEX_CONTAINER_PLATFORM:=podman}"
set -e
for TARGET in node-holder proxy-secure proxy-insecure backend-auth backend-secure; do
export EDITION=$1
source /etc/environment 2>/dev/null || true
: "${RNEX_CONTAINER_PLATFORM:=docker}"
export SHORT_SHA=${GITHUB_SHA::6}
export CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA:-$SHORT_SHA}
echo "building $EDITION"
export TARGET_DIR="target/release"
./test-edition.sh
./build-edition.sh
mkdir -p dist/
cp $TARGET_DIR/rnex-server-backend-node-holder dist/
cp $TARGET_DIR/proxy_insecure dist/
cp $TARGET_DIR/proxy_secure dist/
cp $TARGET_DIR/rnex-server-backend-auth dist/
cp $TARGET_DIR/rnex-server-backend-secure dist/
TARGETS=("node-holder" "proxy-secure" "proxy-insecure" "backend-auth" "backend-secure")
for TARGET in "${TARGETS[@]}"; do
$RNEX_CONTAINER_PLATFORM build \
--network=host \
--build-arg EDITION="$EDITION" \
--build-arg DATABASE_URL="$DATABASE_URL" \
-t "$CI_REGISTRY_IMAGE/$EDITION/$TARGET:$CI_COMMIT_SHORT_SHA" \
--target="$TARGET" .
--target="$TARGET" \
-t "$CI_REGISTRY_IMAGE/$EDITION/$TARGET:$CI_COMMIT_SHORT_SHA" .
$RNEX_CONTAINER_PLATFORM push "$CI_REGISTRY_IMAGE/$EDITION/$TARGET:$CI_COMMIT_SHORT_SHA"
done

View file

@ -7,11 +7,30 @@ on:
env:
DOCKER_TLS_CERTDIR: /certs
IMAGE_TAG: ${{ github.sha }}
SHORT_SHA: ${{ github.sha }}
jobs:
sonic-transformed:
build-editions:
runs-on: debian-trixie
strategy:
fail-fast: false
matrix:
include:
- edition: sonic-transformed
- edition: mario-tennis
- edition: wii-sports-club
db_secret: DATABASE_SMM
- edition: puyopuyo
db_secret: DATABASE_SMM
- edition: minecraft-wiiu
- edition: splatoon-testfire
- edition: fast-racing-neo
- edition: wii-u-chat
- edition: splatoon
- edition: friends
db_secret: DATABASE_FRIENDS
- edition: super-mario-maker
db_secret: DATABASE_SMM
- edition: terraria
steps:
- name: Checkout repository
@ -19,327 +38,26 @@ jobs:
with:
submodules: recursive
- name: Cache container storage
- name: Cache Cargo registry and target
uses: actions/cache@v6
with:
path: |
/var/lib/containers/storage
/run/containers/storage
~/.local/share/containers/storage
key: image-cache
~/.cargo/registry
~/.cargo/git
target/
key: cargo-${{ matrix.edition }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-${{ matrix.edition }}-
- 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 Sonic Transformed edition
- name: Set environment variables & build
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
run: ./.ci-scripts/make-edition.sh sonic-transformed
mario-tennis:
runs-on: debian-trixie
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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 MTUS edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
run: ./.ci-scripts/make-edition.sh mario-tennis
wii-sports-club:
runs-on: debian-trixie
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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 Sports Club edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
DATABASE_URL: ${{ secrets.DATABASE_SMM }}
run: ./.ci-scripts/make-edition.sh wii-sports-club
puyopuyo:
runs-on: debian-trixie
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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 puyo puyo tetris edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
DATABASE_URL: ${{ secrets.DATABASE_SMM }}
run: ./.ci-scripts/make-edition.sh puyopuyo
minecraft-wiiu:
runs-on: debian-trixie
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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
splatoon-testfire:
runs-on: debian-trixie
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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
splatoon:
runs-on: debian-trixie
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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 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
friends:
runs-on: debian-trixie
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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
- name: Build Friends edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
DATABASE_URL: ${{ secrets.DATABASE_FRIENDS }}
run: ./.ci-scripts/make-edition.sh friends
super-mario-maker:
runs-on: debian-trixie
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache container storage
uses: actions/cache@v6
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
- name: Build Super Mario Maker edition
env:
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
DATABASE_URL: ${{ secrets.DATABASE_SMM }}
run: ./.ci-scripts/make-edition.sh super-mario-maker
SHORT_SHA: ${{ github.sha }}
DATABASE_URL: ${{ matrix.db_secret != '' && secrets[matrix.db_secret] || '' }}
run: |
echo "SHORT_SHA=${SHORT_SHA::6}" >> $GITHUB_ENV
export CI_COMMIT_SHORT_SHA="${SHORT_SHA::6}"
./.ci-scripts/make-edition.sh ${{ matrix.edition }}

73
Cargo.lock generated
View file

@ -202,19 +202,19 @@ dependencies = [
[[package]]
name = "anyhow"
version = "1.0.103"
version = "1.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
[[package]]
name = "async-trait"
version = "0.1.89"
version = "0.1.91"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
checksum = "ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.117",
"syn 3.0.3",
]
[[package]]
@ -302,6 +302,12 @@ version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
[[package]]
name = "base64"
version = "0.23.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
[[package]]
name = "base64ct"
version = "1.8.3"
@ -771,7 +777,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
"windows-sys 0.61.2",
"windows-sys 0.52.0",
]
[[package]]
@ -1273,7 +1279,7 @@ version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
dependencies = [
"base64",
"base64 0.22.1",
"bytes",
"futures-channel",
"futures-util",
@ -1284,7 +1290,7 @@ dependencies = [
"libc",
"percent-encoding",
"pin-project-lite",
"socket2 0.6.3",
"socket2 0.5.10",
"tokio",
"tower-service",
"tracing",
@ -1662,11 +1668,11 @@ dependencies = [
[[package]]
name = "nex-account"
version = "0.2.4"
version = "0.2.5"
source = "sparse+https://crates.spbr.net/api/v1/crates/"
checksum = "6f1cfe935e71c764dfd6bad9b23372396f785408536c0a23fba379ef405117d3"
checksum = "7cb5867c4f4771dd7125dce1f911753cc9291b65cd7908c0e7ca182e7b2a57a3"
dependencies = [
"base64",
"base64 0.23.1",
"bytemuck",
"hmac",
"log",
@ -2375,7 +2381,7 @@ version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"
dependencies = [
"base64",
"base64 0.22.1",
"bytes",
"futures-channel",
"futures-core",
@ -2479,7 +2485,7 @@ dependencies = [
name = "rnex-ds"
version = "0.1.0"
dependencies = [
"base64",
"base64 0.22.1",
"chrono",
"futures",
"hex",
@ -2764,7 +2770,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.61.2",
"windows-sys 0.52.0",
]
[[package]]
@ -3152,7 +3158,7 @@ source = "sparse+https://crates.spbr.net/api/v1/crates/"
checksum = "04f4e4710d23bb730a95d00b853e304a4c1c9e86276792cd32a92057e9833452"
dependencies = [
"aes",
"base64",
"base64 0.22.1",
"bytemuck",
"hmac",
"hybrid-array",
@ -3189,7 +3195,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05b44e85bf579a8eeb4ceaa77a3a523baf2bf0e9bac7e40f405d537b5d2d5ccb"
dependencies = [
"base64",
"base64 0.22.1",
"bytes",
"cfg-if",
"chrono",
@ -3291,7 +3297,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87a2bdd6e83f6b3ea525ca9fee568030508b58355a43d0b2c1674d5f79dcd65e"
dependencies = [
"atoi",
"base64",
"base64 0.22.1",
"bitflags",
"byteorder",
"chrono",
@ -3390,6 +3396,17 @@ dependencies = [
"unicode-ident",
]
[[package]]
name = "syn"
version = "3.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "sync_wrapper"
version = "1.0.2"
@ -3417,10 +3434,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
"getrandom 0.4.2",
"getrandom 0.3.4",
"once_cell",
"rustix",
"windows-sys 0.61.2",
"windows-sys 0.52.0",
]
[[package]]
@ -3434,22 +3451,22 @@ dependencies = [
[[package]]
name = "thiserror"
version = "2.0.18"
version = "2.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "2.0.18"
version = "2.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.117",
"syn 3.0.3",
]
[[package]]
@ -3599,7 +3616,7 @@ checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef"
dependencies = [
"async-trait",
"axum",
"base64",
"base64 0.22.1",
"bytes",
"h2",
"http 1.4.0",
@ -3848,7 +3865,7 @@ version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dea7109cdcd5864d4eeb1b58a1648dc9bf520360d7af16ec26d0a9354bafcfc0"
dependencies = [
"base64",
"base64 0.22.1",
"cookie_store",
"der",
"flate2",
@ -3871,7 +3888,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e994ba84b0bd1b1b0cf92878b7ef898a5c1760108fe7b6010327e274917a808c"
dependencies = [
"base64",
"base64 0.22.1",
"http 1.4.0",
"httparse",
"log",
@ -4124,7 +4141,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys 0.61.2",
"windows-sys 0.52.0",
]
[[package]]

View file

@ -34,6 +34,7 @@ members = [
[workspace.dependencies]
tracing = "0.1.44"
openssl = { version = "0.10.81", features = ["vendored"] }
[workspace.lints.clippy]
print_stdout = { level = "deny", priority = 1}

View file

@ -1,58 +1,26 @@
# syntax=docker/dockerfile:1
FROM rust:alpine AS chef
RUN apk add --no-cache musl-dev lld g++ make
RUN cargo install cargo-chef
WORKDIR /app
FROM debian:bookworm-slim AS base
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libssl3 \
&& rm -rf /var/lib/apt/lists/*
FROM chef AS planner
COPY . .
RUN cargo chef prepare --recipe-path recipe.json
FROM chef AS builder
RUN apk add --no-cache protobuf-dev git openssl-dev openssl-libs-static bash yq ca-certificates
COPY --from=planner /app/recipe.json recipe.json
ARG EDITION
ARG DATABASE_URL
RUN --mount=type=cache,id=${EDITION}-registry,target=/usr/local/cargo/registry \
--mount=type=cache,id=${EDITION}-target,target=/app/target \
cargo chef cook --release --recipe-path recipe.json --target x86_64-unknown-linux-musl && \
cargo chef cook --tests --target x86_64-unknown-linux-musl --recipe-path recipe.json
COPY . .
RUN --mount=type=cache,id=${EDITION}-registry,target=/usr/local/cargo/registry \
--mount=type=cache,id=${EDITION}-target,target=/app/target \
RNEX_STATIC=1 ./test-edition.sh && RNEX_STATIC=1 ./build-edition.sh && \
mkdir -p /app/dist && \
cp /app/target/x86_64-unknown-linux-musl/release/rnex-server-backend-node-holder /app/dist/ && \
cp /app/target/x86_64-unknown-linux-musl/release/proxy_insecure /app/dist/ && \
cp /app/target/x86_64-unknown-linux-musl/release/proxy_secure /app/dist/ && \
cp /app/target/x86_64-unknown-linux-musl/release/rnex-server-backend-auth /app/dist/ && \
cp /app/target/x86_64-unknown-linux-musl/release/rnex-server-backend-secure /app/dist/
FROM scratch AS node-holder
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/dist/rnex-server-backend-node-holder /rnex-server-backend-node-holder
FROM base AS node-holder
COPY dist/rnex-server-backend-node-holder /rnex-server-backend-node-holder
ENTRYPOINT ["/rnex-server-backend-node-holder"]
FROM scratch AS proxy-insecure
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/dist/proxy_insecure /proxy_insecure
FROM base AS proxy-insecure
COPY dist/proxy_insecure /proxy_insecure
ENTRYPOINT ["/proxy_insecure"]
FROM scratch AS proxy-secure
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/dist/proxy_secure /proxy_secure
FROM base AS proxy-secure
COPY dist/proxy_secure /proxy_secure
ENTRYPOINT ["/proxy_secure"]
FROM scratch AS backend-auth
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/dist/rnex-server-backend-auth /rnex-server-backend-auth
FROM base AS backend-auth
COPY dist/rnex-server-backend-auth /rnex-server-backend-auth
ENTRYPOINT ["/rnex-server-backend-auth"]
FROM scratch AS backend-secure
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/dist/rnex-server-backend-secure /rnex-server-backend-secure
ENTRYPOINT ["/rnex-server-backend-secure"]
FROM base AS backend-secure
COPY dist/rnex-server-backend-secure /rnex-server-backend-secure
ENTRYPOINT ["/rnex-server-backend-secure"]

View file

@ -6,14 +6,8 @@ if [ -z ${EDITION+x} ]; then
EDITION=$1
fi
# comma seperated list of features for the specified version
source ./buildscripts/common.sh
echo building $EDITION
echo FEATURES:
echo $EDITION_FEATURES
echo "Building $EDITION"
echo "FEATURES: $EDITION_FEATURES"
if [[ ! -v RNEX_STATIC ]]; then
cargo build --release --features "$EDITION_FEATURES"
else
OPENSSL_LIB_DIR=/usr/lib OPENSSL_INCLUDE_DIR=/usr/include/openssl OPENSSL_STATIC=1 RUSTFLAGS="-C relocation-model=static -C linker=ld.lld" cargo build --release --features "$EDITION_FEATURES" --target x86_64-unknown-linux-musl
fi
cargo build --release --features "$EDITION_FEATURES"

View file

@ -158,3 +158,15 @@ super-mario-maker:
RNEX_VIRTUAL_PORT_SECURE: "1:10"
RNEX_DEFAULT_PORT: 6000
RNEX_ACCESS_KEY: "9f2b4678"
terraria:
include-in-checkall: true
features:
- prudpv1
- third-notif-param
- v3-8-15
settings:
AUTH_REPORT_VERSION: "branch:origin/release/ngs/3.8.x.200x build:3_8_13_2004_0"
RNEX_VIRTUAL_PORT_INSECURE: "1:10"
RNEX_VIRTUAL_PORT_SECURE: "1:10"
RNEX_DEFAULT_PORT: 10000
RNEX_ACCESS_KEY: "3d37fbdb"

View file

@ -1,5 +1,3 @@
use bytemuck::from_bytes;
pub mod encryption;
pub mod kerberos;
pub mod socket_addr;
@ -8,9 +6,11 @@ pub mod types_flags;
pub mod virtual_port;
fn read_buffer(data: &[u8]) -> Option<(Vec<u8>, &[u8])> {
let len: u32 = *from_bytes(data.get(..4)?);
let len_bytes: [u8; 4] = data.get(..4)?.try_into().ok()?;
let buf = data.get(4..4 + len as usize)?;
let len = u32::from_ne_bytes(len_bytes) as usize;
Some((buf.into(), data.get(4 + len as usize..).unwrap_or_default()))
let buf = data.get(4..4 + len)?;
Some((buf.to_vec(), data.get(4 + len..).unwrap_or_default()))
}

View file

@ -28,21 +28,21 @@ pub fn read_secure_connection_data(
rc4.apply_keystream(ticket_data);
let ticket_data: &TicketInternalData = match bytemuck::try_from_bytes(ticket_data) {
Ok(v) => v,
Err(e) => {
error!("unable to read internal ticket data: {}", e);
return None;
}
};
if ticket_data.len() < std::mem::size_of::<TicketInternalData>() {
error!("ticket_data buffer too small for TicketInternalData");
return None;
}
// todo: add ticket expiration
let ticket_data_struct: TicketInternalData = bytemuck::pod_read_unaligned(
&ticket_data[..std::mem::size_of::<TicketInternalData>()],
);
let TicketInternalData {
session_key,
pid: ticket_source_pid,
issued_time,
} = *ticket_data;
} = ticket_data_struct;
// todo: add checking if tickets are signed with a valid md5-hmac
let request_data_length = request_data.len();

View file

@ -10,11 +10,5 @@ fi
source ./buildscripts/common.sh
echo FEATURES:
echo $EDITION_FEATURES
echo ENV SETTINGS:
env
if [[ ! -v RNEX_STATIC ]]; then
cargo test --features "$EDITION_FEATURES"
else
OPENSSL_LIB_DIR=/usr/lib OPENSSL_INCLUDE_DIR=/usr/include/openssl OPENSSL_STATIC=1 RUSTFLAGS="-C relocation-model=static -C linker=ld.lld" cargo test --features "$EDITION_FEATURES" --target x86_64-unknown-linux-musl
fi
cargo build --release --features "$EDITION_FEATURES"