diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..bcfa32d7d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +name: CI Build + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential pkg-config ca-certificates curl git \ + libgl1-mesa-dev libglu1-mesa-dev libglfw3-dev libpng-dev libx11-dev \ + libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libudev-dev + + - name: Install Meson and Ninja (pip) + run: | + python -m pip install --upgrade pip + pip install meson ninja + + - name: Configure Meson + run: | + meson setup build_meson --wipe --buildtype=release + + - name: Build with Ninja + run: | + ninja -C build_meson -v + + - name: Package build output + run: | + tar -czf minecraft-binaries.tar.gz -C build_meson . + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: minecraft-binaries + path: minecraft-binaries.tar.gz