mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 09:45:45 +01:00
Compare commits
4 Commits
1367aa8266
...
5db42a2b15
| Author | SHA1 | Date | |
|---|---|---|---|
| 5db42a2b15 | |||
| 2277b8ec77 | |||
| fa26a3561d | |||
| 15b5430611 |
12
.github/workflows/ci.yaml
vendored
12
.github/workflows/ci.yaml
vendored
@@ -11,9 +11,9 @@ jobs:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- ubuntu-24.04-arm
|
||||
- windows-latest
|
||||
- windows-11-arm
|
||||
- macos-latest
|
||||
# - windows-latest
|
||||
# - windows-11-arm
|
||||
# - macos-latest
|
||||
runs-on: ${{matrix.os}}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
@@ -27,12 +27,16 @@ jobs:
|
||||
sudo apt update
|
||||
sudo apt install -y libwayland-dev libxkbcommon-dev xorg-dev cmake xxd
|
||||
|
||||
- name: get submodule hash
|
||||
id: get-hash
|
||||
run: echo "HASH=$(git submodule | sha1sum)" >$GITHUB_OUTPUT
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: lib/obj/
|
||||
# I swear to god, if runner.arch displays x64 for x86_64, I will eat a potato.
|
||||
# note: it is... fucking shit.
|
||||
key: ${{runner.os}}_${{runner.arch}}-lib/obj-${{github.sha}}
|
||||
key: ${{runner.os}}_${{runner.arch}}-lib/obj-${{steps.get-hash.outputs.HASH}}
|
||||
restore-keys: ${{runner.os}}_${{runner.arch}}-lib/obj-
|
||||
- run: make -Bj libs
|
||||
- run: make -j all
|
||||
|
||||
3
Makefile
3
Makefile
@@ -5,6 +5,7 @@
|
||||
NAME = mcaselector-lite
|
||||
DEBUG ?= 0
|
||||
CC ?= cc
|
||||
CMAKE ?= cmake -G 'Unix Makefiles'
|
||||
|
||||
# setting default compilation flags
|
||||
# some of which are able to be overwritten, others are always appended
|
||||
@@ -61,7 +62,7 @@ endif
|
||||
|
||||
# compiles the libraries using cmake
|
||||
lib/obj/%/: lib/%/
|
||||
cmake -S $< -B $@
|
||||
$(CMAKE) -S $< -B $@
|
||||
$(MAKE) -C $@
|
||||
|
||||
# link together a runtime binary
|
||||
|
||||
Reference in New Issue
Block a user