workflow: update workflow to use less space in the GH runner

This commit is contained in:
Stelios Tsampas committed 2025-06-25 18:26:36 +03:00
1 parent 23c39fc30b
commit 9f7891230b
3 files changed
+10 -39

No files matched your search

@@ -1,4 +1,4 @@
From 8668d576addb03a5a41230925a4aa4558fa13b46 Mon Sep 17 00:00:00 2001
From a7e133a2b2c98162db2541df95975fc0c1b64474 Mon Sep 17 00:00:00 2001
From: Stelios Tsampas <[email protected]>
Date: Tue, 19 Mar 2024 14:20:43 +0200
Subject: [PATCH] build: strip binaries early
@@ -8,11 +8,11 @@ Subject: [PATCH] build: strip binaries early
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index f1b3a18c..2a23031a 100644
index cf9a1f71..0a284e58 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -58,7 +58,7 @@ i386_CFLAGS := -mstackrealign $(HOST_CFLAGS) -mno-avx512f -mfpmath=sse
x86_64_CFLAGS := -mcmodel=small $(HOST_CFLAGS) -mno-avx512f -mfpmath=sse
@@ -57,7 +57,7 @@ i386_CFLAGS := -mstackrealign -march=nocona -mtune=core-avx2 -mfpmath=sse
x86_64_CFLAGS := -mcmodel=small -march=nocona -mtune=core-avx2 -mfpmath=sse
CFLAGS = -O2 -fwrapv -fno-strict-aliasing
-CFLAGS += -ggdb -ffunction-sections -fdata-sections -fno-omit-frame-pointer
@@ -21,5 +21,5 @@ index f1b3a18c..2a23031a 100644
ifneq ($(SUPPRESS_WARNINGS),)
--
2.49.0
2.50.0
@@ -1,30 +0,0 @@
From 43cc6ce2180b208d1adde5d53acdd55b33e18f1c Mon Sep 17 00:00:00 2001
From: Stelios Tsampas <[email protected]>
Date: Sat, 26 Apr 2025 20:41:38 +0300
Subject: [PATCH] build: re-apply debug flags, removing `ggdb` to still reduce
size.
"The Finals" fails to launch when these are omitted. I am unsure
which one it is but it doesn't matter, just follow upstream Proton
flags and add the strip flag afterwards.
fixes: CachyOS/proton-cachyos#18
---
Makefile.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 99ee8752b..ed2b33634 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -57,8 +57,8 @@ CROSSLDFLAGS += -Wl,--file-alignment,4096
CFLAGS ?= -O2 -march=nocona -mtune=core-avx2
OPTIMIZE_FLAGS := $(CFLAGS) -mno-avx512f -mfpmath=sse
SANITY_FLAGS := -fwrapv -fno-strict-aliasing
-DEBUG_FLAGS := -ggdb -ffunction-sections -fdata-sections -fno-omit-frame-pointer
-COMMON_FLAGS = -s $(OPTIMIZE_FLAGS) $(SANITY_FLAGS) -ffile-prefix-map=$(CCACHE_BASEDIR)=.
+DEBUG_FLAGS := -ffunction-sections -fdata-sections -fno-omit-frame-pointer
+COMMON_FLAGS = $(DEBUG_FLAGS) -s $(OPTIMIZE_FLAGS) $(SANITY_FLAGS) -ffile-prefix-map=$(CCACHE_BASEDIR)=.
COMMON_FLAGS32 := -mstackrealign
COMMON_FLAGS64 := -mcmodel=small
CARGO_BUILD_ARGS += --release
+5 -4
View File
@@ -29,14 +29,15 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
submodules: false
- name: Patch
run: |
# strip binaries at compile time to save space in the runner
patch -Np1 -i ./.github/patches/0001-build-strip-binaries-early.patch
git submodule update --init --filter=tree:0 --recursive
# apply proton-ge-custom patches
./patches/protonprep-valve-staging.sh || true
# strip binaries at compile time to save space in the runner
patch -Np1 -i ./.github/patches/0001-build-strip-binaries-early.patch
mkdir ./build
- name: Configure
@@ -49,7 +50,7 @@ jobs:
- name: Always Save Cache
uses: actions/cache/save@v4
if: always() && steps.cache-prime-numbers-restore.outputs.cache-hit != 'true'
if: always() && steps.restore-cache.outputs.cache-hit != 'true'
with:
path: ~/.ccache
key: ${{ steps.restore-cache.outputs.cache-primary-key }}