mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-01 11:33:40 +00:00
revert CI
This commit is contained in:
parent
ee5ec1b872
commit
a5b66ec462
40
.github/workflows/build-linux.yml
vendored
40
.github/workflows/build-linux.yml
vendored
|
|
@ -22,17 +22,45 @@ on:
|
|||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
CC: ccache clang
|
||||
CXX: ccache clang++
|
||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v31
|
||||
- name: Install system dependencies
|
||||
uses: daaku/gh-action-apt-install@v4
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
packages: build-essential ccache python3 python3-pip ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev patchelf
|
||||
|
||||
- name: Install meson from pip
|
||||
run: |
|
||||
python -m pip install meson
|
||||
|
||||
- name: Restore ccache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ runner.temp }}/ccache
|
||||
key: ${{ runner.os }}-ccache-${{ hashFiles('**/meson.build') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-ccache-
|
||||
|
||||
- name: Configure ccache
|
||||
run: ccache -M 5G
|
||||
|
||||
- name: Configure Meson
|
||||
run: meson setup build --wipe --native-file=./scripts/llvm_native.txt
|
||||
|
||||
- name: Build
|
||||
run: nix build --print-build-logs
|
||||
run: meson compile -C build -j $(nproc) -v Minecraft.Client
|
||||
|
||||
- name: Flake integrity
|
||||
run: nix flake check
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: minecraft-client-linux-${{ github.sha }}
|
||||
path: build/Minecraft.Client/Minecraft.Client
|
||||
retention-days: 7
|
||||
|
|
|
|||
Loading…
Reference in a new issue