From fc8d5de17de40514ca0219246550f32c1da0ee64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 8 May 2024 16:19:02 +0200 Subject: [PATCH] chore: push action-gh-release from v1 to v2 --- .github/workflows/release.yml | 12 +++++++----- .github/workflows/tests.yml | 6 +++++- GNUmakefile.template | 4 ++-- configure | 2 +- src/closure.c | 5 ++++- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb38021..525fda0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,9 @@ jobs: set +x ./configure ${{ matrix.clionly }} --with-werror - name: make - run: make -j$(sysctl -n hw.ncpu || 2) + run: | + cat Makefile.config + make -j$(sysctl -n hw.ncpu || 2) - name: check executability run: ./dvdisaster --version - name: check executable (GUI) @@ -49,7 +51,7 @@ jobs: run: ./.github/workflows/make-mac-app.sh ${{ github.ref }} id: dist - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: ${{ steps.dist.outputs.archive }} draft: true @@ -112,7 +114,7 @@ jobs: cd dist dvdisaster.exe --version - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: ${{ steps.dist.outputs.archive }} draft: true @@ -138,7 +140,7 @@ jobs: run: ./.github/workflows/make-dist.sh ${{ github.ref }} id: dist - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: ${{ steps.dist.outputs.archive }} draft: true @@ -195,7 +197,7 @@ jobs: echo "archive=$archive" >> "$GITHUB_OUTPUT" echo "appimage is <$archive>" - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: ${{ steps.dist.outputs.archive }} draft: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c88d4b8..6e80e52 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,11 @@ jobs: set +x ./configure ${{ matrix.clionly }} ${{ matrix.debugprintf }} --with-werror - name: make - run: make -j$(sysctl -n hw.ncpu || 2) + run: | + cat Makefile.config + echo xxxxxxxxxxxxxxxxxxxxxxx + grep -i icon GNUmakefile + make -j$(sysctl -n hw.ncpu || 2) - name: check executability run: ./dvdisaster --version - name: check executable (GUI) diff --git a/GNUmakefile.template b/GNUmakefile.template index fc3ee59..08f4fc4 100644 --- a/GNUmakefile.template +++ b/GNUmakefile.template @@ -118,11 +118,11 @@ ${BUILDTMP}/build.o : src/build.c src/build.h @echo "Compiling:" src/build.o @$(CC) $(COPTS) -c src/build.c -o $@ -${BUILDTMP}/closure.o : src/closure.c src/inlined-icons.h +${BUILDTMP}/closure.o : src/closure.c $(ICONS) @echo "Compiling:" src/closure.c @$(CC) $(COPTS) -c src/closure.c -o $@ -${BUILDTMP}/icon-factory.o : src/icon-factory.c src/inlined-icons.h +${BUILDTMP}/icon-factory.o : src/icon-factory.c $(ICONS) @echo "Compiling:" src/icon-factory.c @$(CC) $(COPTS) -c src/icon-factory.c -o $@ diff --git a/configure b/configure index 7e73606..e4f140b 100755 --- a/configure +++ b/configure @@ -26,7 +26,7 @@ BASH_BASED_CONFIGURE=./scripts/bash-based-configure BASH_BASED_CONFIGURE_OPTS="--buildtmp=$(pwd)/build $@" REQUIRED_CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I. -pipe" -RECOMMENDED_CFLAGS="-O2 -fomit-frame-pointer -Wall -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-format-zero-length" +RECOMMENDED_CFLAGS="-O2 -fomit-frame-pointer -Wall -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-format-zero-length -Wno-unused-but-set-variable" DEBUG_CFLAGS="-ggdb -Wall" if test -e $BASH_BASED_CONFIGURE; then diff --git a/src/closure.c b/src/closure.c index 1e4600b..c300cba 100644 --- a/src/closure.c +++ b/src/closure.c @@ -23,7 +23,10 @@ /*** src type: some GUI code ***/ #include "dvdisaster.h" -#include "inlined-icons.h" + +#ifdef WITH_GUI_YES + #include "inlined-icons.h" +#endif #if 0 #define Verbose g_printf