Commit Diff


commit - e49904066e82d73302ebd16eab6446a69a0ee49f
commit + 5b4486f2fd3d9571dde51c2c74821e7b1cca3819
blob - a20868a5ed0db36d789c2a500211b9f29c9f57a7
blob + 59b9f279ac27c0896c3f4c6e632a393a140a3b47
--- .github/workflows/build.yml
+++ .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