mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
added basic CI
This commit is contained in:
parent
baab1724ff
commit
5b45dacb1c
49
.github/workflows/ci.yml
vendored
Normal file
49
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -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
|
||||||
Loading…
Reference in a new issue