mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-19 17:47:11 +00:00
another ci fix attempt
This commit is contained in:
parent
4c218c825c
commit
2f08d34fe4
6
.github/workflows/build-linux.yml
vendored
6
.github/workflows/build-linux.yml
vendored
|
|
@ -51,12 +51,12 @@ jobs:
|
||||||
|
|
||||||
- name: Configure Meson
|
- name: Configure Meson
|
||||||
env:
|
env:
|
||||||
CC: "ccache clang-20"
|
CC: "ccache clang"
|
||||||
CXX: "ccache clang++-20"
|
CXX: "ccache clang++"
|
||||||
CC_LD: lld
|
CC_LD: lld
|
||||||
CXX_LD: lld
|
CXX_LD: lld
|
||||||
run: |
|
run: |
|
||||||
meson setup build --wipe
|
meson setup build --native-file=scripts/llvm_native.txt --wipe
|
||||||
|
|
||||||
- name: Build with Meson
|
- name: Build with Meson
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
42
.github/workflows/release-linux.yml
vendored
42
.github/workflows/release-linux.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Nightly (Linux, x86-64)
|
name: Release Nightly (Linux, x86-64)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -14,11 +14,11 @@ on:
|
||||||
- '**.inl'
|
- '**.inl'
|
||||||
- "**meson.build"
|
- "**meson.build"
|
||||||
- "flake.nix"
|
- "flake.nix"
|
||||||
- '.github/workflows/build-linux.yml'
|
- '.github/workflows/release-linux.yml'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
release-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -30,34 +30,32 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y build-essential ccache python3 python3-pip ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev libglm-dev
|
sudo apt-get install -y build-essential ccache python3 python3-pip ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev libglm-dev
|
||||||
python -m pip install meson
|
python -m pip install meson
|
||||||
|
# Set a reasonable ccache size
|
||||||
ccache -M 5G || true
|
ccache -M 5G || true
|
||||||
|
|
||||||
- name: Restore ccache
|
- name: Install LLVM + libc++
|
||||||
uses: actions/cache@v4
|
run: |
|
||||||
with:
|
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 20
|
||||||
path: ~/.ccache
|
sudo apt-get install -y libc++-20-dev libc++abi-20-dev
|
||||||
key: ${{ runner.os }}-ccache-${{ hashFiles('**/meson.build') }}
|
|
||||||
|
|
||||||
- name: Restore meson cache
|
- name: Restore ccache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/meson
|
path: ${{ runner.temp }}/ccache
|
||||||
key: ${{ runner.os }}-meson-${{ hashFiles('**/meson.build') }}
|
key: ${{ runner.os }}-ccache-${{ hashFiles('**/meson.build') }}
|
||||||
|
restore-keys: ${{ runner.os }}-ccache-
|
||||||
|
|
||||||
- name: Configure Meson
|
- name: Configure Meson
|
||||||
env:
|
env:
|
||||||
CC: "ccache clang-20"
|
CC: "ccache clang"
|
||||||
CXX: "ccache clang++-20"
|
CXX: "ccache clang++"
|
||||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
CC_LD: lld
|
||||||
|
CXX_LD: lld
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$CCACHE_DIR"
|
meson setup build --native-file=scripts/llvm_native.txt --wipe
|
||||||
export CCACHE_DIR="$CCACHE_DIR"
|
|
||||||
meson setup build --wipe --native-file=./scripts/llvm_native.txt
|
|
||||||
|
|
||||||
- name: Build with Meson
|
- name: Build with Meson
|
||||||
env:
|
env:
|
||||||
CC: "ccache clang-20"
|
|
||||||
CXX: "ccache clang++-20"
|
|
||||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
CCACHE_DIR: ${{ runner.temp }}/ccache
|
||||||
run: |
|
run: |
|
||||||
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
||||||
|
|
@ -68,8 +66,8 @@ jobs:
|
||||||
|
|
||||||
- name: Package artifact
|
- name: Package artifact
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build/targets
|
||||||
zip -r ../minecraft-client-linux.zip Minecraft.Client --exclude "Minecraft.Client/Minecraft.Client.p/*"
|
zip -r ../minecraft-client-linux.zip app --exclude "app/Minecraft.Client.p/*"
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue