Skip to content

Commit 586a9ac

Browse files
committed
github: Upload all artifacts from scheduled builds to the "nightly" release
1 parent 48276b7 commit 586a9ac

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: '0 0 * * *'
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
# For scheduled builds, get the commit ids of the latest versions to build.
1114
#
@@ -558,3 +561,21 @@ jobs:
558561
make -j$(nproc)
559562
make fate-rsync
560563
make -j$(nproc) fate
564+
565+
upload-nightly:
566+
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
567+
permissions:
568+
contents: write
569+
needs: [linux, macos, linux-cross, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]
570+
runs-on: ubuntu-latest
571+
steps:
572+
- name: Download all artifacts
573+
uses: actions/download-artifact@v3
574+
- name: Rearrange files
575+
run: |
576+
mv windows-*-toolchain/*.zip linux-toolchain/*.tar.xz macos-toolchain/*.tar.xz .
577+
- name: Upload binaries
578+
env:
579+
GITHUB_TOKEN: ${{github.token}}
580+
run: |
581+
gh release upload nightly *.tar.xz *.zip --clobber -R ${{github.repository}}

0 commit comments

Comments
 (0)