mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 21:33:37 +00:00
CI: Compile the client directly with Meson
I'm not sure why Ninja had to be called here
This commit is contained in:
parent
a2d1f04c58
commit
4eaf02bfd0
9
.github/workflows/build-linux.yml
vendored
9
.github/workflows/build-linux.yml
vendored
|
|
@ -74,7 +74,7 @@ jobs:
|
|||
export CCACHE_DIR="$CCACHE_DIR"
|
||||
meson setup build_meson --wipe --buildtype=release
|
||||
|
||||
- name: Build with Ninja
|
||||
- name: Build with Meson
|
||||
env:
|
||||
CC: "ccache clang"
|
||||
CXX: "ccache clang++"
|
||||
|
|
@ -82,7 +82,7 @@ jobs:
|
|||
run: |
|
||||
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
||||
# Use all available cores for faster parallel builds
|
||||
ninja -C build_meson -j$(nproc) -v
|
||||
meson compile -C build_meson -j $(nproc) -v Minecraft.Client
|
||||
|
||||
- name: Install patchelf
|
||||
run: sudo apt-get install -y patchelf
|
||||
|
|
@ -220,14 +220,15 @@ jobs:
|
|||
export CCACHE_DIR="$CCACHE_DIR"
|
||||
meson setup build_debug --wipe --buildtype=debug
|
||||
|
||||
- name: Build Debug with Ninja
|
||||
- name: Build Debug with Meson
|
||||
env:
|
||||
CC: "ccache clang"
|
||||
CXX: "ccache clang++"
|
||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
||||
run: |
|
||||
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
||||
ninja -C build_debug -j$(nproc) -v
|
||||
# Use all available cores for faster parallel builds
|
||||
meson compile -C build_debug -j $(nproc) -v Minecraft.Client
|
||||
|
||||
- name: Upload debug executable
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
Loading…
Reference in a new issue