Prepare QCW Podman (from revision) #58
Workflow file for this run
This file contains 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: Prepare QCW Podman (from revision) | |
on: workflow_dispatch | |
env: | |
PODMAN_GITURL: https://github.com/containers/podman.git | |
PODMAN_SHA: c5841b000358fa1dff27c23e5839af404b20f395 | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: "ποΈ Install msys2" | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: UCRT64 | |
update: true | |
install: >- | |
make | |
git | |
unzip | |
base-devel | |
mingw-w64-ucrt-x86_64-toolchain | |
zip | |
mingw-w64-ucrt-x86_64-go | |
- name: "ποΈ Install tools" | |
uses: crazy-max/ghaction-chocolatey@v3 | |
with: | |
args: install pandoc -y --force\ | |
- name: "ποΈ Install tools" | |
run: dotnet tool install --global wix | |
- name: "π Configure checkout" | |
run: git config --global core.autocrlf input | |
- name: "π Checkout" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: "π Link tools" | |
shell: msys2 {0} | |
run: | | |
mkdir -p /usr/local/bin | |
ln -sf "$PROGRAMFILES\\Pandoc\\pandoc.exe" "/usr/local/bin/pandoc.exe" | |
ln -sf "$USERPROFILE\\.dotnet\\tools\\wix.exe" "/usr/local/bin/wix.exe" | |
ln -sf "$USERPROFILE\\.dotnet\\tools\\.store" "/usr/local/bin/.store" | |
- name: "π Fetch sources" | |
shell: msys2 {0} | |
run: | | |
mkdir podman-release | |
cd podman-release | |
git init | |
git remote add origin $PODMAN_GITURL | |
git fetch --depth 1 origin $PODMAN_SHA | |
git checkout FETCH_HEAD | |
patch --binary -l -p 1 < ../patches/podman/0001-Enable-compilation-for-Windows-on-parts-of-QEMU-mach.patch | |
patch --binary -l -p 1 < ../patches/podman/0002-Implement-QEMU-Podman-machine-on-Windows.patch | |
- name: "π οΈ Build Podman" | |
working-directory: podman-release | |
shell: msys2 {0} | |
run: | | |
make podman-remote-release-windows_amd64.zip | |
export BUILD_PODMAN_VERSION=$(test/version/version | sed 's/-.*//') | |
mkdir -p contrib/win-installer/current | |
cp *.zip contrib/win-installer/current/ | |
cd contrib/win-installer | |
powershell -ExecutionPolicy Bypass -File build.ps1 $BUILD_PODMAN_VERSION dev current | |
- name: "π¦ Pack Podman" | |
shell: msys2 {0} | |
run: | | |
mkdir -p qcw | |
export BUILD_PODMAN_VERSION=$(podman-release/test/version/version | sed 's/-.*//') | |
cp "podman-release/contrib/win-installer/podman-$BUILD_PODMAN_VERSION-dev-setup.exe" 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 | |
- name: "π Upload artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: qcw-podman | |
path: qcw |