Skip to content

Commit

Permalink
github: Upload all artifacts from scheduled builds to the "nightly" r…
Browse files Browse the repository at this point in the history
…elease
  • Loading branch information
mstorsjo committed Apr 25, 2023
1 parent 48276b7 commit 586a9ac
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
schedule:
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
# For scheduled builds, get the commit ids of the latest versions to build.
#
Expand Down Expand Up @@ -558,3 +561,21 @@ jobs:
make -j$(nproc)
make fate-rsync
make -j$(nproc) fate
upload-nightly:
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
permissions:
contents: write
needs: [linux, macos, linux-cross, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
- name: Rearrange files
run: |
mv windows-*-toolchain/*.zip linux-toolchain/*.tar.xz macos-toolchain/*.tar.xz .
- name: Upload binaries
env:
GITHUB_TOKEN: ${{github.token}}
run: |
gh release upload nightly *.tar.xz *.zip --clobber -R ${{github.repository}}

0 comments on commit 586a9ac

Please sign in to comment.