Skip to content

Commit

Permalink
Update release
Browse files Browse the repository at this point in the history
  • Loading branch information
arixmkii committed Jan 29, 2025
1 parent d3d5bbd commit dfd5ec8
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare-go-wsllinks-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/prepare-lima-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down
55 changes: 35 additions & 20 deletions .github/workflows/publish-qcw-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -53,18 +62,24 @@ jobs:
sed -e "s/<<SHA512>>/$(cat qcw/checksums.sha512 | sed -z 's:\n:\\n:g' | sed 's:/:\\/:g')/g" -i release.template.md
sed 's/<<TAG_NAME>>/${{ inputs.release_tag }}/g' -i release.template.md
sed 's/<<RELEASE_HIGHLIGHTS>>/${{ inputs.release_highlights }}/g' -i release.template.md
sed "s/<<ALPINE_VERSION>>/$ALPINE_VERSION/g" -i release.template.md
sed "s/<<ALPINEWSL_VERSION>>/$ALPINEWSL_VERSION/g" -i release.template.md
sed "s/<<DOCKER_VERSION>>/$DOCKER_VERSION/g" -i release.template.md
sed "s/<<DOCKER_COMPOSE_VERSION>>/$DOCKER_COMPOSE_VERSION/g" -i release.template.md
sed "s/<<GOWSLLINKS_VERSION>>/$GOWSLLINKS_VERSION/g" -i release.template.md
sed "s/<<LIMA_VERSION>>/$LIMA_VERSION/g" -i release.template.md
sed "s/<<PODMAN_VERSION>>/$PODMAN_VERSION/g" -i release.template.md
sed "s/<<QEMU_VERSION>>/$QEMU_VERSION/g" -i release.template.md
sed -e "s/<<BUILD_LOG_URL>>/$(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"
7 changes: 5 additions & 2 deletions release.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
<<RELEASE_HIGHLIGHTS>>

#### Included in this release
* QEMU `<<QEMU_VERSION>>` (this one includes 9pfs on Windows hosts patches and UEFI pflash fixes, if this functionality is not needed, then consider using official installer)
* Podman `<<PODMAN_VERSION>>` with patches to enable QEMU support on Windows
* Docker CLI `<<DOCKER_VERSION>>`
* Docker Compose `<<DOCKER_COMPOSE_VERSION>>`
* go-wsllinks `<<GOWSLLINKS_VERSION>>`
* Lima `<<LIMA_VERSION>>` with patches to enable QEMU support on Windows
* lima-infra Alpine WSL image `<<ALPINE_VERSION>>` based on AlpineWSL project `<<ALPINEWSL_VERSION>>`
* Podman `<<PODMAN_VERSION>>` with patches to enable QEMU support on Windows
* QEMU `<<QEMU_VERSION>>` (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)
Expand Down

0 comments on commit dfd5ec8

Please sign in to comment.