forked from EXTERNAL/bareiron
generate registry headers in workflow
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -14,12 +14,29 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Bun
|
||||||
|
uses: oven-sh/setup-bun@v1
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
|
||||||
- name: Download cosmocc
|
- name: Download cosmocc
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://cosmo.zip/pub/cosmocc/cosmocc.zip
|
curl -LO https://cosmo.zip/pub/cosmocc/cosmocc.zip
|
||||||
unzip cosmocc.zip -d cosmocc
|
unzip cosmocc.zip -d cosmocc
|
||||||
echo "$PWD/cosmocc/bin" >> $GITHUB_PATH
|
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
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
cosmocc src/*.c -O3 -Iinclude -o bareiron.exe
|
cosmocc src/*.c -O3 -Iinclude -o bareiron.exe
|
||||||
|
Reference in New Issue
Block a user