@@ -18,6 +18,7 @@ jobs: | |||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
with: | with: | ||||
submodules: 'recursive' | submodules: 'recursive' | ||||
fetch-depth: 0 | |||||
- name: Install dependencies | - name: Install dependencies | ||||
run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev | run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev | ||||
@@ -47,6 +48,7 @@ jobs: | |||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
with: | with: | ||||
submodules: 'recursive' | submodules: 'recursive' | ||||
fetch-depth: 0 | |||||
- name: Install dependencies | - name: Install dependencies | ||||
run: sudo apt install cmake git mingw-w64 unzip | run: sudo apt install cmake git mingw-w64 unzip | ||||
@@ -44,7 +44,8 @@ jobs: | |||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
with: | with: | ||||
submodules: 'recursive' | submodules: 'recursive' | ||||
fetch-depth: 0 | |||||
- name: Install dependencies | - name: Install dependencies | ||||
run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev | run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev | ||||
@@ -73,6 +74,7 @@ jobs: | |||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
with: | with: | ||||
submodules: 'recursive' | submodules: 'recursive' | ||||
fetch-depth: 0 | |||||
- name: Install dependencies | - name: Install dependencies | ||||
run: sudo apt install cmake git mingw-w64 unzip | run: sudo apt install cmake git mingw-w64 unzip | ||||
@@ -33,8 +33,8 @@ if [ ! -d libsndfile-1.2.0-win64 ]; then | |||||
fi | fi | ||||
# Copy required GCC libs | # 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 | # Build aptdec | ||||
cmake -B $BUILD_DIR -DCMAKE_BUILD_TYPE=$1 -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH | cmake -B $BUILD_DIR -DCMAKE_BUILD_TYPE=$1 -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH | ||||