diff --git a/.github/workflows/prepare-go-wsllinks-release.yml b/.github/workflows/prepare-go-wsllinks-release.yml index 60b3bee..7b31d2e 100644 --- a/.github/workflows/prepare-go-wsllinks-release.yml +++ b/.github/workflows/prepare-go-wsllinks-release.yml @@ -48,7 +48,7 @@ jobs: run: | mkdir -p qcw cp "go-wsllinks-release/go-wsllinks.exe" qcw/ - cd ../qcw + cd qcw find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums cat sha.checksums diff --git a/.github/workflows/prepare-lima-release.yml b/.github/workflows/prepare-lima-release.yml index 497f7f9..b3d611b 100644 --- a/.github/workflows/prepare-lima-release.yml +++ b/.github/workflows/prepare-lima-release.yml @@ -6,6 +6,9 @@ on: lima_version: description: lima version" value: ${{ jobs.build.outputs.lima_version }} + gowsllinks_version: + description: go-wsllinks version" + value: ${{ jobs.build.outputs.gowsllinks_version }} env: LIMA_GITURL: https://github.com/lima-vm/lima.git LIMA_SHA: e911564e4a5f3151a3beef5ec2446914e016c745 @@ -18,6 +21,7 @@ jobs: runs-on: windows-latest outputs: lima_version: ${{ steps.make_versions.outputs.lima }} + gowsllinks_version: ${{ steps.make_versions.outputs.gowsllinks }} steps: - name: "🏗️ Install msys2" uses: msys2/setup-msys2@v2 @@ -66,9 +70,11 @@ jobs: cat sha.checksums - id: make_versions name: "📌 Export versions" + env: + GOWSLLINKS_VERSION: ${{ needs.call-prepare-go-wsllinks.outputs.gowsllinks_version }} shell: msys2 {0} run: | - echo "lima=$LIMA_VERSION-$LIMA_SHA" >> "$GITHUB_OUTPUT" + echo "gowsllinks=$GOWSLLINKS_VERSION" >> "$GITHUB_OUTPUT" - name: "🚀 Upload artifact" uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/publish-qcw-release.yml b/.github/workflows/publish-qcw-release.yml index 2f6e4f4..60150b5 100644 --- a/.github/workflows/publish-qcw-release.yml +++ b/.github/workflows/publish-qcw-release.yml @@ -16,14 +16,19 @@ on: required: true type: string jobs: - call-prepare-docker: - uses: ./.github/workflows/prepare-docker-release.yml - call-prepare-podman: - uses: ./.github/workflows/prepare-podman-release.yml - call-prepare-qemu: - uses: ./.github/workflows/prepare-qemu-release.yml + # call-prepare-docker: + # uses: ./.github/workflows/prepare-docker-release.yml + # call-prepare-podman: + # uses: ./.github/workflows/prepare-podman-release.yml + # call-prepare-qemu: + # uses: ./.github/workflows/prepare-qemu-release.yml + call-prepare-alpine-wsl: + uses: ./.github/workflows/prepare-alpine-wsl-release.yml + call-prepare-lima: + uses: ./.github/workflows/prepare-lima-release.yml publish: - needs: [call-prepare-docker, call-prepare-podman, call-prepare-qemu] + # needs: [call-prepare-docker, call-prepare-podman, call-prepare-qemu] + needs: [call-prepare-alpine-wsl, call-prepare-lima] runs-on: ubuntu-latest steps: - name: "📝 Configure checkout" @@ -38,10 +43,14 @@ jobs: path: qcw - name: "🗒️ Prepare release notes" env: - DOCKER_VERSION: ${{ needs.call-prepare-docker.outputs.cli_version }} - DOCKER_COMPOSE_VERSION: ${{ needs.call-prepare-docker.outputs.compose_version }} - PODMAN_VERSION: ${{ needs.call-prepare-podman.outputs.podman_version }} - QEMU_VERSION: ${{ needs.call-prepare-qemu.outputs.qemu_version }} + ALPINE_VERSION: ${{ needs.call-prepare-alpine-wsl.outputs.alpine_version }} + ALPINEWSL_VERSION: ${{ needs.call-prepare-alpine-wsl.outputs.alpine_wsl_version }} + # DOCKER_VERSION: ${{ needs.call-prepare-docker.outputs.cli_version }} + # DOCKER_COMPOSE_VERSION: ${{ needs.call-prepare-docker.outputs.compose_version }} + GOWSLLINKS_VERSION: ${{ needs.call-prepare-lima.outputs.gowsllinks_version }} + LIMA_VERSION: ${{ needs.call-prepare-lima.outputs.lima_version }} + # PODMAN_VERSION: ${{ needs.call-prepare-podman.outputs.podman_version }} + # QEMU_VERSION: ${{ needs.call-prepare-qemu.outputs.qemu_version }} BUILD_LOG_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} run: | cat ./*/*/sha.checksums | awk '{ print length, $0 }' | sort -n | cut -d" " -f2- > sha.sums @@ -53,18 +62,24 @@ jobs: sed -e "s/<>/$(cat qcw/checksums.sha512 | sed -z 's:\n:\\n:g' | sed 's:/:\\/:g')/g" -i release.template.md sed 's/<>/${{ inputs.release_tag }}/g' -i release.template.md sed 's/<>/${{ inputs.release_highlights }}/g' -i release.template.md + sed "s/<>/$ALPINE_VERSION/g" -i release.template.md + sed "s/<>/$ALPINEWSL_VERSION/g" -i release.template.md sed "s/<>/$DOCKER_VERSION/g" -i release.template.md sed "s/<>/$DOCKER_COMPOSE_VERSION/g" -i release.template.md + sed "s/<>/$GOWSLLINKS_VERSION/g" -i release.template.md + sed "s/<>/$LIMA_VERSION/g" -i release.template.md sed "s/<>/$PODMAN_VERSION/g" -i release.template.md sed "s/<>/$QEMU_VERSION/g" -i release.template.md sed -e "s/<>/$(echo $BUILD_LOG_URL | sed 's:/:\\/:g')/g" -i release.template.md cat release.template.md - - name: "🏷️ Publish release" - uses: ncipollo/release-action@v1 - with: - name: ${{ inputs.release_name }} - prerelease: "true" - artifacts: "qcw/**/*.exe,qcw/*.sha256,qcw/*.sha512" - bodyFile: "release.template.md" - tag: ${{ inputs.release_tag }} - commit: "main" + cat qcw/checksums.sha256 + cat qcw/checksums.sha512 + # - name: "🏷️ Publish release" + # uses: ncipollo/release-action@v1 + # with: + # name: ${{ inputs.release_name }} + # prerelease: "true" + # artifacts: "qcw/**/*.exe,qcw/**/*.wsl,qcw/*.sha256,qcw/*.sha512" + # bodyFile: "release.template.md" + # tag: ${{ inputs.release_tag }} + # commit: "main" diff --git a/release.template.md b/release.template.md index 5d17717..af597b5 100644 --- a/release.template.md +++ b/release.template.md @@ -2,10 +2,13 @@ <> #### Included in this release -* QEMU `<>` (this one includes 9pfs on Windows hosts patches and UEFI pflash fixes, if this functionality is not needed, then consider using official installer) -* Podman `<>` with patches to enable QEMU support on Windows * Docker CLI `<>` * Docker Compose `<>` +* go-wsllinks `<>` +* Lima `<>` with patches to enable QEMU support on Windows +* lima-infra Alpine WSL image `<>` based on AlpineWSL project `<>` +* Podman `<>` with patches to enable QEMU support on Windows +* QEMU `<>` (this one includes 9pfs on Windows hosts patches and UEFI pflash fixes, if this functionality is not needed, then consider using official installer, this is required to run Lima) #### How to install 1. Download and install QEMU (from this release or official one version 7.2.0 or newer)