From 0d5195434e3ee95d516a003edf6b3f32fc09ef86 Mon Sep 17 00:00:00 2001 From: Xerbo Date: Sat, 21 Jan 2023 22:50:13 +0000 Subject: [PATCH] Github actions, set fetch depth to unlimited --- .github/workflows/build.yml | 2 ++ .github/workflows/release.yml | 4 +++- build_windows.sh | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8960cb7..d49bb48 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: 'recursive' + fetch-depth: 0 - name: Install dependencies run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev @@ -47,6 +48,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: 'recursive' + fetch-depth: 0 - name: Install dependencies run: sudo apt install cmake git mingw-w64 unzip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f7dce4..e249d56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,7 +44,8 @@ jobs: - uses: actions/checkout@v3 with: submodules: 'recursive' - + fetch-depth: 0 + - name: Install dependencies run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev @@ -73,6 +74,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: 'recursive' + fetch-depth: 0 - name: Install dependencies run: sudo apt install cmake git mingw-w64 unzip diff --git a/build_windows.sh b/build_windows.sh index 987c11e..5fa5c4a 100755 --- a/build_windows.sh +++ b/build_windows.sh @@ -33,8 +33,8 @@ if [ ! -d libsndfile-1.2.0-win64 ]; then fi # Copy required GCC libs -cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgcc_s_seh-1.dll $TEMP_PATH/bin -cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll $TEMP_PATH/bin +cp $(find /usr | grep libgcc_s_seh-1.dll) $TEMP_PATH/bin +cp $(find /usr | grep libwinpthread-1.dll) $TEMP_PATH/bin # Build aptdec cmake -B $BUILD_DIR -DCMAKE_BUILD_TYPE=$1 -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH