Skip to content

Commit

Permalink
Schedule nightly builds and upload installer to nightly release.
Browse files Browse the repository at this point in the history
  • Loading branch information
acolwell committed Oct 13, 2024
1 parent 21d6f2a commit 8726092
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 5 deletions.
54 changes: 52 additions & 2 deletions .github/workflows/build_installer.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: Build Installer

on:
workflow_dispatch: {}
push:
workflow_dispatch:
inputs:
push_to_nightly_release:
required: true
type: boolean
default: false
push: {}

schedule:
- cron: '0 12 * * *'

env:
NATRON_BUILD_WORKSPACE: 'D:/nbw'
Expand All @@ -16,6 +24,9 @@ jobs:
run:
shell: msys2 {0}

outputs:
win_installer_artifact: ${{ steps.build.outputs.INSTALLER_NAME }}

steps:
- name: Checkout branch
uses: actions/[email protected]
Expand Down Expand Up @@ -119,6 +130,10 @@ jobs:
run:
shell: msys2 {0}

outputs:
win_installer_breakpad_artifact: ${{ steps.build.outputs.INSTALLER_NAME }}
win_installer_breakpad_symbols_artifact: ${{ steps.build.outputs.SYMBOLS_NAME }}

steps:
- name: Checkout branch
uses: actions/[email protected]
Expand Down Expand Up @@ -199,3 +214,38 @@ jobs:
echo "Testing $(basename ${x}) ..."
PATH=${INSTALLER_DIR}/bin ./verify_plugin_loads.exe "${x}"
done
update-nightly-release:
name: "Update Nightly Release"
runs-on: "ubuntu-latest"
needs: [win-installer, win-installer-breakpad]
permissions:
contents: write
if: (github.event.schedule != '' && github.ref_name == 'AJC-RB-2.5') || ${{ inputs.push_to_nightly_release }}
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Display structure of downloaded files
run: ls -R artifacts

- name: Zip artifacts
run: |
cd artifacts
(cd ${{ needs.win-installer.outputs.win_installer_artifact }}; zip -r ../${{ needs.win-installer.outputs.win_installer_artifact }}.zip *)
(cd ${{ needs.win-installer-breakpad.outputs.win_installer_breakpad_artifact }}; zip -r ../${{ needs.win-installer-breakpad.outputs.win_installer_breakpad_artifact }}.zip *)
(cd ${{ needs.win-installer-breakpad.outputs.win_installer_breakpad_symbols_artifact }}; zip -r ../${{ needs.win-installer-breakpad.outputs.win_installer_breakpad_symbols_artifact }}.zip *)
- name: Display structure of downloaded files
run: ls -R artifacts

- uses: "softprops/action-gh-release@v1"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
tag_name: nightly
target_commitish: ${{ github.sha }}
files: |
artifacts/*.zip
3 changes: 3 additions & 0 deletions .github/workflows/build_pacman_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- 'tools/MINGW-packages/**'
- '.github/workflows/build_pacman_repo.yml'

schedule:
- cron: '0 12 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Tests
on:
workflow_dispatch: {}
push:
branches:
- RB-2.5
- RB-2.6
paths-ignore:
- Documentation
pull_request:
Expand All @@ -15,6 +12,9 @@ on:
paths-ignore:
- Documentation

schedule:
- cron: '0 12 * * *'

jobs:
unix_test:
name: Test ${{ matrix.os }} Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 8726092

Please sign in to comment.