diff --git a/.github/workflows/SourceRelease.yml b/.github/workflows/SourceRelease.yml new file mode 100644 index 000000000000..c89434d17e9f --- /dev/null +++ b/.github/workflows/SourceRelease.yml @@ -0,0 +1,49 @@ +name: CI Generate Source Only Tarball + +# Trigger whenever a release and/or is created +on: + release: + types: + - created + push: + tags: + - "v*.*" + +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: archive + id: archive + run: | + VERSION=${GITHUB_REF##*/} + test -z "$VERSION" && VERSION=${{ github.event.release.tag_name }} + VERSION=$(printf "%s\n" "$VERSION" | sed 's/^v//') + PKGNAME="retroarch-sourceonly-$VERSION" + mkdir -p /tmp/$PKGNAME + mv * /tmp/$PKGNAME + mv /tmp/$PKGNAME . + rm -rf $PKGNAME/pkg || true + rm -rf $PKGNAME/wii/libogc || true + rm -rf $PKGNAME/deps/glslang/glslang/Test || true + rm -rf $PKGNAME/deps/SPIRV-Cross/reference || true + rm -rf $PKGNAME/gfx/include/userland || true + find $PKGNAME/ -type f -name '*.a' -delete || true + find $PKGNAME/ -type f -name '*.lib' -delete || true + find $PKGNAME/ -type f -name '*.dylib' -delete || true + find $PKGNAME/ -type f -name '*.so.*' -delete || true + find $PKGNAME/ -type f -name '*.dll' -delete || true + TARBALL=$PKGNAME.tar.xz + tar cJf $TARBALL $PKGNAME + echo "tarball=$TARBALL" >> $GITHUB_OUTPUT + + - name: upload tarball + uses: softprops/action-gh-release@v2 + with: + files: ${{ steps.archive.outputs.tarball }} diff --git a/.github/workflows/crowdin-daily.yml b/.github/workflows/crowdin-daily.yml index cb2eb994e206..c75dc130e60e 100644 --- a/.github/workflows/crowdin-daily.yml +++ b/.github/workflows/crowdin-daily.yml @@ -16,12 +16,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Java JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 18 distribution: zulu - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Checkout diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 2e1079528dec..5ee309af9e93 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -18,12 +18,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Java JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 18 distribution: zulu - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Checkout diff --git a/.github/workflows/webOS.yml b/.github/workflows/webOS.yml index 425c02c9c105..669afa50ec73 100644 --- a/.github/workflows/webOS.yml +++ b/.github/workflows/webOS.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: Download ares-cli-rs - uses: robinraju/release-downloader@v1.9 + uses: robinraju/release-downloader@v1.11 with: repository: "webosbrew/ares-cli-rs" latest: true @@ -32,7 +32,7 @@ jobs: run: sudo apt-get -yq install ./temp/*.deb - name: Download webOS NDK - uses: robinraju/release-downloader@v1.9 + uses: robinraju/release-downloader@v1.11 with: repository: "openlgtv/buildroot-nc4" latest: true diff --git a/Makefile.common b/Makefile.common index 2a715f4786a2..17c5e401853d 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1305,6 +1305,9 @@ ifeq ($(HAVE_X11), 1) ifeq ($(HAVE_XCB),1) LIBS += -lX11-xcb endif + ifeq ($(HAVE_XSCRNSAVER),1) + LIBS += -lXss + endif ifneq ($(HAVE_OPENGLES), 1) OBJ += gfx/drivers_context/x_ctx.o endif diff --git a/audio/common/alsa.c b/audio/common/alsa.c index f1b011a2e8e5..445ecb2017d2 100644 --- a/audio/common/alsa.c +++ b/audio/common/alsa.c @@ -19,8 +19,9 @@ #include #include +#include "alsa.h" + #include "../audio_driver.h" -#include "../common/alsa.h" #include "../../verbosity.h" int alsa_init_pcm(snd_pcm_t **pcm, diff --git a/audio/common/alsa.h b/audio/common/alsa.h index d459c21c746e..013a4e7103a3 100644 --- a/audio/common/alsa.h +++ b/audio/common/alsa.h @@ -18,8 +18,9 @@ #define _RETROARCH_ALSA #include -#include "queues/fifo_queue.h" -#include "rthreads/rthreads.h" +#include +#include + /* Header file for common functions that are used by alsa and alsathread. */ /** diff --git a/audio/common/alsathread.h b/audio/common/alsathread.h index dafa5be8e050..b137b1fff692 100644 --- a/audio/common/alsathread.h +++ b/audio/common/alsathread.h @@ -19,9 +19,9 @@ #include #include -#include "queues/fifo_queue.h" -#include "rthreads/rthreads.h" -#include "./alsa.h" +#include +#include +#include "alsa.h" typedef struct alsa_thread_info { diff --git a/audio/common/mmdevice_common.c b/audio/common/mmdevice_common.c index 6801693b907e..c0c14979ddb8 100644 --- a/audio/common/mmdevice_common.c +++ b/audio/common/mmdevice_common.c @@ -21,7 +21,6 @@ #include "mmdevice_common.h" #include "mmdevice_common_inline.h" - char* mmdevice_name(IMMDevice *device) { HRESULT hr; diff --git a/audio/common/wasapi.c b/audio/common/wasapi.c index b94a3ed20ec9..639dda79d8e3 100644 --- a/audio/common/wasapi.c +++ b/audio/common/wasapi.c @@ -15,17 +15,18 @@ */ #include "wasapi.h" -#include #ifdef HAVE_MICROPHONE -#include "audio/microphone_driver.h" +#include "../microphone_driver.h" #endif -#include "queues/fifo_queue.h" -#include "lists/string_list.h" -#include "configuration.h" -#include "verbosity.h" -#include "string/stdstring.h" +#include +#include +#include + #include "mmdevice_common.h" +#include "../../configuration.h" +#include "../../verbosity.h" + const char *hresult_name(HRESULT hr) { switch (hr) diff --git a/audio/common/wasapi.h b/audio/common/wasapi.h index 9393e2a01ed7..154313ab36b7 100644 --- a/audio/common/wasapi.h +++ b/audio/common/wasapi.h @@ -23,8 +23,8 @@ #ifndef RETROARCH_COMMON_WASAPI_H #define RETROARCH_COMMON_WASAPI_H -#include "../common/mmdevice_common_inline.h" -#include "boolean.h" +#include "mmdevice_common_inline.h" +#include /* Shared buffer size replacement placeholders */ #define WASAPI_SH_BUFFER_AUDIO_LATENCY 0 @@ -37,4 +37,4 @@ IMMDevice *wasapi_init_device(const char *id, EDataFlow data_flow); IAudioClient *wasapi_init_client(IMMDevice *device, bool *exclusive, bool *float_fmt, unsigned *rate, unsigned latency, unsigned channels); -#endif /* RETROARCH_COMMON_WASAPI_H */ \ No newline at end of file +#endif /* RETROARCH_COMMON_WASAPI_H */ diff --git a/audio/microphone_driver.c b/audio/microphone_driver.c index f5a667cf86f0..7174311495a5 100644 --- a/audio/microphone_driver.c +++ b/audio/microphone_driver.c @@ -19,6 +19,7 @@ #include