mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
run two builds, one with unity on and the other with unity off
This commit is contained in:
parent
2f08d34fe4
commit
f41b4939be
17
.github/workflows/build-linux.yml
vendored
17
.github/workflows/build-linux.yml
vendored
|
|
@ -50,19 +50,20 @@ jobs:
|
||||||
restore-keys: ${{ runner.os }}-ccache-
|
restore-keys: ${{ runner.os }}-ccache-
|
||||||
|
|
||||||
- name: Configure Meson
|
- name: Configure Meson
|
||||||
env:
|
|
||||||
CC: "ccache clang"
|
|
||||||
CXX: "ccache clang++"
|
|
||||||
CC_LD: lld
|
|
||||||
CXX_LD: lld
|
|
||||||
run: |
|
run: |
|
||||||
meson setup build --native-file=scripts/llvm_native.txt --wipe
|
meson setup build --native-file=scripts/llvm_native.txt -Dunity=off --wipe
|
||||||
|
meson setup build_unity --native-file=scripts/llvm_native.txt -Dunity=on -Dunity_size=99999 --wipe
|
||||||
|
|
||||||
- name: Build with Meson
|
- name: Compile (-Dunity=on)
|
||||||
|
env:
|
||||||
|
CCACHE_DIR: ${{ runner.temp }}/ccache
|
||||||
|
run: |
|
||||||
|
meson compile -C build_unity -j $(nproc) -v Minecraft.Client
|
||||||
|
|
||||||
|
- name: Compile (-Dunity=off)
|
||||||
env:
|
env:
|
||||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
CCACHE_DIR: ${{ runner.temp }}/ccache
|
||||||
run: |
|
run: |
|
||||||
# Use all available cores for faster parallel builds
|
|
||||||
meson compile -C build -j $(nproc) -v Minecraft.Client
|
meson compile -C build -j $(nproc) -v Minecraft.Client
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue