From 4be0b7f16c7b02ccbcaab41a7a9abd319a944f0f Mon Sep 17 00:00:00 2001 From: bashonly Date: Wed, 13 Aug 2025 09:56:15 -0500 Subject: [PATCH] verify linux exes in container too Authored by: bashonly --- .github/workflows/build.yml | 12 ++++++++++++ bundle/docker/compose.yml | 31 +++++++++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 66f9697ea..8a5ef1aac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -170,6 +170,18 @@ jobs: docker compose up --build --exit-code-from "${SERVICE}" "${SERVICE}" docker compose down sudo chown "${USER}:docker" ~/build/${{ matrix.exe }} + - name: Verify --update-to in container + if: vars.UPDATE_TO_VERIFICATION + env: + EXE_NAME: ${{ matrix.exe }} + CHANNEL: ${{ inputs.channel }} + ORIGIN: ${{ needs.process.outputs.origin }} + VERSION: ${{ inputs.version }} + SERVICE: linux_${{ matrix.platform }}_verify + run: | + cd bundle/docker + docker compose up --build --exit-code-from "${SERVICE}" "${SERVICE}" + docker compose down - name: Verify --update-to if: vars.UPDATE_TO_VERIFICATION run: | diff --git a/bundle/docker/compose.yml b/bundle/docker/compose.yml index 5f979e423..438e751ce 100644 --- a/bundle/docker/compose.yml +++ b/bundle/docker/compose.yml @@ -16,6 +16,19 @@ services: - ~/build:/build - ../..:/yt-dlp + linux_x86_64_verify: + build: + context: linux + dockerfile: verify.Dockerfile + platforms: + - "linux/amd64" + args: + IMAGE: quay.io/pypa/manylinux2014_x86_64:latest + environment: + EXE_NAME: ${EXE_NAME} + volumes: + - ~/build:/build + linux_aarch64: build: context: linux @@ -32,6 +45,20 @@ services: - ~/build:/build - ../..:/yt-dlp + linux_aarch64_verify: + build: + context: linux + dockerfile: verify.Dockerfile + platforms: + - "linux/arm64" + args: + IMAGE: quay.io/pypa/manylinux2014_aarch64:latest + environment: + EXE_NAME: ${EXE_NAME} + SKIP_UPDATE_TO: "1" # TODO: remove when there is a glibc2.17 aarch64 release to --update-to + volumes: + - ~/build:/build + linux_armv7l: build: context: linux @@ -89,7 +116,7 @@ services: IMAGE: alpine:3.22 environment: EXE_NAME: ${EXE_NAME} - SKIP_UPDATE_TO: "1" + SKIP_UPDATE_TO: "1" # TODO: remove when there is a musllinux_aarch64 release to --update-to volumes: - ~/build:/build @@ -120,7 +147,7 @@ services: IMAGE: alpine:3.22 environment: EXE_NAME: ${EXE_NAME} - SKIP_UPDATE_TO: "1" + SKIP_UPDATE_TO: "1" # TODO: remove when there is a musllinux_aarch64 release to --update-to EXCLUDE_CURL_CFFI: "1" volumes: - ~/build:/build