From 3057e5efadbffce3a622922789b864f6a77b8116 Mon Sep 17 00:00:00 2001 From: Nicolas Berthier Date: Wed, 28 Aug 2024 15:14:39 +0200 Subject: [PATCH] Tar MSYS2 distribution archive to avoid EMFILE error --- .github/workflows/windows-msys2.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows-msys2.yml b/.github/workflows/windows-msys2.yml index 9652b5f29..371c6216c 100644 --- a/.github/workflows/windows-msys2.yml +++ b/.github/workflows/windows-msys2.yml @@ -111,8 +111,14 @@ jobs: run: | make -C _build distmingw - - name: Upload GnuCOBOL_mingw-${{matrix.sys}}-${{matrix.target}} + - name: Tar GnuCOBOL_mingw-${{matrix.sys}}-${{matrix.target}} + shell: msys2 {0} + run: | + tar -cvf GnuCOBOL_mingw-${{matrix.sys}}-${{matrix.target}}.tar \ + ${{ env.GITHUB_WORKSPACE }}/_build/${{ env.DISTDIR }} + + - name: Upload GnuCOBOL_mingw-${{matrix.sys}}-${{matrix.target}}.tar uses: actions/upload-artifact@v4 with: - name: GnuCOBOL_mingw-${{matrix.sys}}-${{matrix.target}} - path: ${{ env.GITHUB_WORKSPACE }}/_build/${{ env.DISTDIR }} + name: GnuCOBOL_mingw-${{matrix.sys}}-${{matrix.target}}.tar + path: ${{ env.GITHUB_WORKSPACE }}/_build/${{ env.DISTDIR }}.tar