mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
overcomplicating it
This commit is contained in:
parent
a5b66ec462
commit
1128e602fd
35
.github/workflows/build-linux.yml
vendored
35
.github/workflows/build-linux.yml
vendored
|
|
@ -40,23 +40,42 @@ jobs:
|
||||||
- name: Install meson from pip
|
- name: Install meson from pip
|
||||||
run: |
|
run: |
|
||||||
python -m pip install meson
|
python -m pip install meson
|
||||||
|
ccache -M 5G || true
|
||||||
|
|
||||||
- name: Restore ccache
|
- name: Restore ccache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ runner.temp }}/ccache
|
path: ~/.ccache
|
||||||
key: ${{ runner.os }}-ccache-${{ hashFiles('**/meson.build') }}
|
key: ${{ runner.os }}-ccache-${{ hashFiles('**/meson.build') }}
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-ccache-
|
|
||||||
|
|
||||||
- name: Configure ccache
|
- name: Restore meson cache
|
||||||
run: ccache -M 5G
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.cache/meson
|
||||||
|
key: ${{ runner.os }}-meson-${{ hashFiles('**/meson.build') }}
|
||||||
|
|
||||||
- name: Configure Meson
|
- name: Configure Meson
|
||||||
run: meson setup build --wipe --native-file=./scripts/llvm_native.txt
|
env:
|
||||||
|
CC: "ccache clang"
|
||||||
|
CXX: "ccache clang++"
|
||||||
|
CCACHE_DIR: ${{ runner.temp }}/ccache
|
||||||
|
run: |
|
||||||
|
mkdir -p "$CCACHE_DIR"
|
||||||
|
export CCACHE_DIR="$CCACHE_DIR"
|
||||||
|
meson setup build --wipe --native-file=./scripts/llvm_native.txt
|
||||||
|
|
||||||
- name: Build
|
- name: Build with Meson
|
||||||
run: meson compile -C build -j $(nproc) -v Minecraft.Client
|
env:
|
||||||
|
CC: "ccache clang"
|
||||||
|
CXX: "ccache clang++"
|
||||||
|
CCACHE_DIR: ${{ runner.temp }}/ccache
|
||||||
|
run: |
|
||||||
|
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
||||||
|
# Use all available cores for faster parallel builds
|
||||||
|
meson compile -C build -j $(nproc) -v Minecraft.Client
|
||||||
|
|
||||||
|
- name: Install patchelf
|
||||||
|
run: sudo apt-get install -y patchelf
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue