Nightly #74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Nightly | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' # 2 AM UTC | |
| workflow_dispatch: | |
| concurrency: | |
| group: nightly | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should_build: ${{ steps.check.outputs.should_build }} | |
| changelog: ${{ steps.check.outputs.changelog }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check for changes | |
| id: check | |
| uses: ./.github/actions/check-nightly | |
| build-linux: | |
| needs: check | |
| if: needs.check.outputs.should_build == 'true' | |
| uses: ./.github/workflows/build-linux.yml | |
| build-windows: | |
| needs: check | |
| if: needs.check.outputs.should_build == 'true' | |
| uses: ./.github/workflows/build-windows.yml | |
| publish: | |
| needs: [ check, build-linux, build-windows ] | |
| if: needs.check.outputs.should_build == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download Linux artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: REDasm-linux-x86_64 | |
| - name: Download Windows artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: REDasm-windows-x86_64 | |
| path: redasm-windows-x86_64/ | |
| - name: Rename AppImage | |
| run: mv REDasm-linux-x86_64.AppImage REDasm-nightly-linux-x86_64.AppImage | |
| - name: Package Windows | |
| run: zip -r REDasm-nightly-windows-x86_64.zip redasm-windows-x86_64/ | |
| - name: Checksum artifacts | |
| run: | | |
| sha256sum REDasm-nightly-linux-x86_64.AppImage > REDasm-nightly-linux-x86_64.AppImage.sha256 | |
| sha256sum REDasm-nightly-windows-x86_64.zip > REDasm-nightly-windows-x86_64.zip.sha256 | |
| - name: Sign checksums | |
| env: | |
| GPG_PRIVATE_KEY: ${{ secrets.RD_NIGHTLY_GPG_PRIVATE_KEY }} | |
| GPG_PASSPHRASE: ${{ secrets.RD_NIGHTLY_GPG_PASSPHRASE }} | |
| run: | | |
| echo "$GPG_PRIVATE_KEY" | gpg --batch --import | |
| echo "$GPG_PASSPHRASE" | gpg --batch --pinentry-mode loopback \ | |
| --passphrase-fd 0 --detach-sign --armor REDasm-nightly-linux-x86_64.AppImage.sha256 | |
| echo "$GPG_PASSPHRASE" | gpg --batch --pinentry-mode loopback \ | |
| --passphrase-fd 0 --detach-sign --armor REDasm-nightly-windows-x86_64.zip.sha256 | |
| - name: Verify signatures and checksums | |
| run: | | |
| gpg --verify REDasm-nightly-linux-x86_64.AppImage.sha256.asc REDasm-nightly-linux-x86_64.AppImage.sha256 | |
| gpg --verify REDasm-nightly-windows-x86_64.zip.sha256.asc REDasm-nightly-windows-x86_64.zip.sha256 | |
| sha256sum -c REDasm-nightly-linux-x86_64.AppImage.sha256 | |
| sha256sum -c REDasm-nightly-windows-x86_64.zip.sha256 | |
| - name: Get current date | |
| id: date | |
| run: echo "date=$(date -u +'%Y-%m-%d')" >> $GITHUB_OUTPUT | |
| - name: Publish nightly release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| token: ${{ secrets.RD_WORKSPACE_CI_TOKEN }} | |
| repository: redasm-dev/redasm | |
| tag_name: nightly | |
| name: "Nightly Build (${{ steps.date.outputs.date }})" | |
| prerelease: true | |
| body: ${{ needs.check.outputs.changelog }} | |
| files: | | |
| REDasm-nightly-linux-x86_64.AppImage | |
| REDasm-nightly-linux-x86_64.AppImage.sha256 | |
| REDasm-nightly-linux-x86_64.AppImage.sha256.asc | |
| REDasm-nightly-windows-x86_64.zip | |
| REDasm-nightly-windows-x86_64.zip.sha256 | |
| REDasm-nightly-windows-x86_64.zip.sha256.asc |