diff --git a/.github/workflows/generate-srcinfo.yml b/.github/workflows/generate-srcinfo.yml index b8a078ec76..47f8029994 100644 --- a/.github/workflows/generate-srcinfo.yml +++ b/.github/workflows/generate-srcinfo.yml @@ -28,7 +28,8 @@ jobs: install: binutils update: true - - shell: msys2 {0} + - name: Download srcinfo.json and set up the environment + shell: msys2 {0} run: | # XXX: linting PKGBUILDs takes a loooong time, this skips it sed -i s/^lint_pkgbuild/#lint_pkgbuild/g /usr/bin/makepkg @@ -36,7 +37,8 @@ jobs: touch /mingw64/bin/gcc.exe /mingw32/bin/gcc.exe /ucrt64/bin/gcc.exe /clang64/bin/clang.exe /clang32/bin/clang.exe /clangarm64/bin/clang.exe curl --fail -L --retry 5 -o srcinfo.json "https://github.com/$GITHUB_REPOSITORY/releases/download/srcinfo-cache/srcinfo.json" - - run: | + - name: Parse PKGBUILDs and update srcinfo.json + run: | $MSYS2_ROOT=(msys2 -c 'cygpath -w /') python -u .ci/ci-generate-srcinfo.py --time-limit 19800 mingw "$MSYS2_ROOT" . srcinfo.json @@ -55,7 +57,8 @@ jobs: with: name: result - - run: | + - name: Upload srcinfo.json + run: | gh release upload srcinfo-cache srcinfo.json --clobber --repo "$GITHUB_REPOSITORY" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}