From deb97ff63bd890e1562f10f0e8b258057f5440fc Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 28 Jun 2023 14:26:25 +0200 Subject: Do not upload build artifacts for scheduled builds. * fix binutils build failure Signed-off-by: Toni Uhlig --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6617a75..467a534 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - tmp pull_request: branches: - main @@ -51,9 +52,17 @@ jobs: source ./tmp/mingw-w64-sysroot/activate.sh x86_64-w64-mingw32-gcc -v x86_64-w64-mingw32-g++ -v - - uses: actions/upload-artifact@v2 + - name: Archive Build Log + if: always() + uses: actions/upload-artifact@v2 with: - name: mingw-w64-toolchain + name: build-log + path: $HOME/.mingw-w64-build-ng/build.log + - name: Upload Toolchain + if: github.event.schedule != '0 13 * * 1' + uses: actions/upload-artifact@v2 + with: + if: github.event.schedule != '0 13 * * 1' path: | ./mingw-w64-toolchain.tbz2 ./mingw-w64-toolchain.tbz2.sha512 -- cgit v1.2.3