attest-rest update #20
Workflow file for this run
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: Build | |
| on: | |
| push: | |
| tags: | |
| - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10 | |
| - "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+" # Push events to matching alpha releases | |
| - "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+" # Push events to matching beta releases | |
| - "v[0-9]+.[0-9]+.[0-9]+-patch.[0-9]+" # Push events to matching beta releases | |
| - "v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+" # Push events to matching rc releases | |
| jobs: | |
| build: | |
| runs-on: secret-vm-build-runner | |
| steps: | |
| - name: Get the version | |
| id: get_version | |
| run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Build | |
| run: | | |
| scripts/build_reproducible.sh | |
| mv -v artifacts/rootfs-dev{,-${{ steps.get_version.outputs.VERSION }}}.iso | |
| mv -v artifacts/rootfs-prod{,-${{ steps.get_version.outputs.VERSION }}}.iso | |
| mv -v artifacts/rootfs-gpu-dev{,-${{ steps.get_version.outputs.VERSION }}}.iso | |
| mv -v artifacts/rootfs-gpu-prod{,-${{ steps.get_version.outputs.VERSION }}}.iso | |
| mv -v artifacts/ovmf{,-${{ steps.get_version.outputs.VERSION }}}.fd | |
| mv -v artifacts/bzImage{,-${{ steps.get_version.outputs.VERSION }}} | |
| mv -v artifacts/initramfs{,-${{ steps.get_version.outputs.VERSION }}}.cpio.gz | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: rootfs-dev-${{ steps.get_version.outputs.VERSION }}.iso | |
| path: artifacts/rootfs-dev-${{ steps.get_version.outputs.VERSION }}.iso | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: rootfs-prod-${{ steps.get_version.outputs.VERSION }}.iso | |
| path: artifacts/rootfs-prod-${{ steps.get_version.outputs.VERSION }}.iso | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: rootfs-gpu-dev-${{ steps.get_version.outputs.VERSION }}.iso | |
| path: artifacts/rootfs-gpu-dev-${{ steps.get_version.outputs.VERSION }}.iso | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: rootfs-gpu-prod-${{ steps.get_version.outputs.VERSION }}.iso | |
| path: artifacts/rootfs-gpu-prod-${{ steps.get_version.outputs.VERSION }}.iso | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ovmf-${{ steps.get_version.outputs.VERSION }}.fd | |
| path: artifacts/ovmf-${{ steps.get_version.outputs.VERSION }}.fd | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: bzImage-${{ steps.get_version.outputs.VERSION }} | |
| path: artifacts/bzImage-${{ steps.get_version.outputs.VERSION }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: initramfs-${{ steps.get_version.outputs.VERSION }}.cpio.gz | |
| path: artifacts/initramfs-${{ steps.get_version.outputs.VERSION }}.cpio.gz | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| prerelease: true | |
| files: | | |
| artifacts/rootfs-dev-${{ steps.get_version.outputs.VERSION }}.iso | |
| artifacts/rootfs-prod-${{ steps.get_version.outputs.VERSION }}.iso | |
| artifacts/rootfs-gpu-dev-${{ steps.get_version.outputs.VERSION }}.iso | |
| artifacts/rootfs-gpu-prod-${{ steps.get_version.outputs.VERSION }}.iso | |
| artifacts/ovmf-${{ steps.get_version.outputs.VERSION }}.fd | |
| artifacts/bzImage-${{ steps.get_version.outputs.VERSION }} | |
| artifacts/initramfs-${{ steps.get_version.outputs.VERSION }}.cpio.gz |