mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 22:35: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:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- ubuntu-24.04-arm
|
- ubuntu-24.04-arm
|
||||||
- windows-latest
|
# - windows-latest
|
||||||
- windows-11-arm
|
# - windows-11-arm
|
||||||
- macos-latest
|
# - macos-latest
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
@@ -27,12 +27,16 @@ jobs:
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y libwayland-dev libxkbcommon-dev xorg-dev cmake xxd
|
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
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: lib/obj/
|
path: lib/obj/
|
||||||
# I swear to god, if runner.arch displays x64 for x86_64, I will eat a potato.
|
# I swear to god, if runner.arch displays x64 for x86_64, I will eat a potato.
|
||||||
# note: it is... fucking shit.
|
# 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-
|
restore-keys: ${{runner.os}}_${{runner.arch}}-lib/obj-
|
||||||
- run: make -Bj libs
|
- run: make -Bj libs
|
||||||
- run: make -j all
|
- run: make -j all
|
||||||
|
|||||||
3
Makefile
3
Makefile
@@ -5,6 +5,7 @@
|
|||||||
NAME = mcaselector-lite
|
NAME = mcaselector-lite
|
||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
CC ?= cc
|
CC ?= cc
|
||||||
|
CMAKE ?= cmake -G 'Unix Makefiles'
|
||||||
|
|
||||||
# setting default compilation flags
|
# setting default compilation flags
|
||||||
# some of which are able to be overwritten, others are always appended
|
# some of which are able to be overwritten, others are always appended
|
||||||
@@ -61,7 +62,7 @@ endif
|
|||||||
|
|
||||||
# compiles the libraries using cmake
|
# compiles the libraries using cmake
|
||||||
lib/obj/%/: lib/%/
|
lib/obj/%/: lib/%/
|
||||||
cmake -S $< -B $@
|
$(CMAKE) -S $< -B $@
|
||||||
$(MAKE) -C $@
|
$(MAKE) -C $@
|
||||||
|
|
||||||
# link together a runtime binary
|
# link together a runtime binary
|
||||||
|
|||||||
Reference in New Issue
Block a user