mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
therewasanattempttwice
This commit is contained in:
parent
860853505e
commit
bb0694af2b
17
.github/workflows/build-linux.yml
vendored
17
.github/workflows/build-linux.yml
vendored
|
|
@ -32,10 +32,7 @@ jobs:
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y build-essential ccache python3 ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev
|
sudo apt-get install -y build-essential ccache python3 ninja-build python3-meson libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev
|
||||||
python3 -m ensurepip
|
|
||||||
sudo pip install meson
|
|
||||||
|
|
||||||
# Set a reasonable ccache size
|
# Set a reasonable ccache size
|
||||||
ccache -M 5G || true
|
ccache -M 5G || true
|
||||||
|
|
||||||
|
|
@ -59,7 +56,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$CCACHE_DIR"
|
mkdir -p "$CCACHE_DIR"
|
||||||
export CCACHE_DIR="$CCACHE_DIR"
|
export CCACHE_DIR="$CCACHE_DIR"
|
||||||
python -m meson setup build_release --wipe --buildtype=release --native-file=./scripts/llvm_native.txt
|
meson setup build_release --wipe --buildtype=release --native-file=./scripts/llvm_native.txt
|
||||||
|
|
||||||
- name: Build with Meson
|
- name: Build with Meson
|
||||||
env:
|
env:
|
||||||
|
|
@ -69,7 +66,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
||||||
# Use all available cores for faster parallel builds
|
# Use all available cores for faster parallel builds
|
||||||
python -m meson compile -C build_release -j $(nproc) -v Minecraft.Client
|
meson compile -C build_release -j $(nproc) -v Minecraft.Client
|
||||||
|
|
||||||
- name: Install patchelf
|
- name: Install patchelf
|
||||||
run: sudo apt-get install -y patchelf
|
run: sudo apt-get install -y patchelf
|
||||||
|
|
@ -89,9 +86,7 @@ jobs:
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y build-essential ccache python3 ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev
|
sudo apt-get install -y build-essential ccache python3 ninja-build python3-meson libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev
|
||||||
python3 -m ensurepip
|
|
||||||
sudo pip install meson
|
|
||||||
# Set a reasonable ccache size
|
# Set a reasonable ccache size
|
||||||
ccache -M 5G || true
|
ccache -M 5G || true
|
||||||
|
|
||||||
|
|
@ -115,7 +110,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$CCACHE_DIR"
|
mkdir -p "$CCACHE_DIR"
|
||||||
export CCACHE_DIR="$CCACHE_DIR"
|
export CCACHE_DIR="$CCACHE_DIR"
|
||||||
python -m meson setup build_debug --wipe --buildtype=debug --native-file=./scripts/llvm_native.txt
|
meson setup build_debug --wipe --buildtype=debug --native-file=./scripts/llvm_native.txt
|
||||||
|
|
||||||
- name: Build Debug with Meson
|
- name: Build Debug with Meson
|
||||||
env:
|
env:
|
||||||
|
|
@ -125,7 +120,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
||||||
# Use all available cores for faster parallel builds
|
# Use all available cores for faster parallel builds
|
||||||
python -m meson compile -C build_debug -j $(nproc) -v Minecraft.Client
|
meson compile -C build_debug -j $(nproc) -v Minecraft.Client
|
||||||
|
|
||||||
- name: Upload debug executable
|
- name: Upload debug executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue