From 9969564468693f989af5d5a776b6132ff38d9e9e Mon Sep 17 00:00:00 2001 From: Quine Global Date: Sun, 4 Jan 2026 04:38:11 -0500 Subject: [PATCH] Try fix --- .github/workflows/ci.yml | 18 +++++++++++++++--- .github/workflows/release.yml | 20 ++++++++++++++++---- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a765b1f..4f37aeb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,11 +97,23 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up QEMU + - name: Set up QEMU and binfmt run: | + # Install qemu-user-static sudo apt-get update - sudo apt-get install -y qemu-user-static binfmt-support - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + sudo apt-get install -y qemu-user-static + + # Download and install binfmt configurations + wget https://github.com/qemu/qemu/raw/master/scripts/qemu-binfmt-conf.sh + chmod +x qemu-binfmt-conf.sh + sudo ./qemu-binfmt-conf.sh --qemu-path /usr/bin --qemu-suffix -static --debian + + # Import the binfmt configurations + sudo update-binfmts --import qemu-arm + sudo update-binfmts --import qemu-aarch64 + + # Verify they exist + ls -la /proc/sys/fs/binfmt_misc/qemu-arm* || true - name: Build ARMv7l uses: ./.github/actions/build-linux-arm diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 759b3eed..5e6a63eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,11 +84,23 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up QEMU + - name: Set up QEMU and binfmt run: | + # Install qemu-user-static sudo apt-get update - sudo apt-get install -y qemu-user-static binfmt-support - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + sudo apt-get install -y qemu-user-static + + # Download and install binfmt configurations + wget https://github.com/qemu/qemu/raw/master/scripts/qemu-binfmt-conf.sh + chmod +x qemu-binfmt-conf.sh + sudo ./qemu-binfmt-conf.sh --qemu-path /usr/bin --qemu-suffix -static --debian + + # Import the binfmt configurations + sudo update-binfmts --import qemu-arm + sudo update-binfmts --import qemu-aarch64 + + # Verify they exist + ls -la /proc/sys/fs/binfmt_misc/qemu-arm* || true - name: Build ARMv7l uses: ./.github/actions/build-linux-arm @@ -140,7 +152,7 @@ jobs: - name: List downloaded artifacts run: ls -R ./artifacts - + - name: Ensure non-empty artifacts run: | echo "Checking for zero-byte files in artifacts/..."