From 136af8899638505f41ea861c25c821a3e6dc17b9 Mon Sep 17 00:00:00 2001 From: Jacob Carlborg Date: Tue, 9 Apr 2024 20:35:35 +0200 Subject: [PATCH] fixup! Add support for OpenBSD 7.5 --- .github/workflows/build.yml | 54 ++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e8daa0..69dbc68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,29 +60,33 @@ jobs: if: matrix.architecture == 'arm64' run: curl -o resources/qemu_efi.fd -L https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 + # - name: Setup tmate session + # uses: mxschmitt/action-tmate@v3 - # - name: Build Image - # run: | - # PACKER_LOG=1 ./build.sh \ - # '${{ matrix.version }}' \ - # '${{ matrix.architecture }}' \ - # -var 'headless=true' \ - # -var 'readonly_boot_media=false' - # - # - name: Extract Version - # id: version - # if: startsWith(github.ref, 'refs/tags/v') - # run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - # - # - name: Create Release - # id: create_release - # if: startsWith(github.ref, 'refs/tags/v') - # uses: softprops/action-gh-release@v1 - # with: - # name: OpenBSD ${{ steps.version.outputs.VERSION }} - # draft: true - # files: output/* - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build Image + run: | + PACKER_LOG=1 ./build.sh \ + '${{ matrix.version }}' \ + '${{ matrix.architecture }}' \ + -var 'headless=true' \ + -var 'readonly_boot_media=false' + + - name: Log + if: failure() + run: cat log.txt + + - name: Extract Version + id: version + if: startsWith(github.ref, 'refs/tags/v') + run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + + - name: Create Release + id: create_release + if: startsWith(github.ref, 'refs/tags/v') + uses: softprops/action-gh-release@v1 + with: + name: OpenBSD ${{ steps.version.outputs.VERSION }} + draft: true + files: output/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}