From 5b4486f2fd3d9571dde51c2c74821e7b1cca3819 Mon Sep 17 00:00:00 2001 From: p2r3 Date: Tue, 9 Sep 2025 13:32:23 +0300 Subject: [PATCH] generate registry headers in workflow --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a20868a..59b9f27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,12 +14,29 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + - name: Download cosmocc run: | curl -LO https://cosmo.zip/pub/cosmocc/cosmocc.zip unzip cosmocc.zip -d cosmocc echo "$PWD/cosmocc/bin" >> $GITHUB_PATH + - name: Dump Minecraft server registries + run: | + mkdir notchian + cd notchian + curl -Lo server.jar https://piston-data.mojang.com/v1/objects/6bce4ef400e4efaa63a13d5e6f6b500be969ef81/server.jar + echo "eula=true" > eula.txt + java -DbundlerMainClass="net.minecraft.data.Main" -jar server.jar + + - name: Generate registry headers + run: | + bun run build_registries.js + - name: Build project run: | cosmocc src/*.c -O3 -Iinclude -o bareiron.exe