From 70b350154e548152730a3b6a7984df0e310b3c94 Mon Sep 17 00:00:00 2001 From: robojerk Date: Sun, 7 Sep 2025 15:44:39 -0700 Subject: [PATCH] Fix DNS resolution issue: replace actions/checkout with direct git clone - Remove actions/checkout@v4 that was failing with 'Could not resolve host: forgejo' - Use direct git clone approach like working bootc workflow - Create workspace directory and copy files manually - Update Docker volume mount to use correct workspace path - Add verification step to ensure files are copied correctly This resolves the DNS resolution error from run #4. --- .forgejo/workflows/ci.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 5c62f43..e79842a 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -15,7 +15,20 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + echo "Cloning repository..." + # Create workspace directory + mkdir -p /workspace/particle-os/libfuse + # Clone repository + git clone https://git.raines.xyz/particle-os/libfuse.git /tmp/libfuse + cd /tmp/libfuse + git fetch --all + git checkout ${{ github.sha || gitea.sha || 'main' }} + # Copy files to workspace + cp -r /tmp/libfuse/* /workspace/particle-os/libfuse/ 2>/dev/null || true + cp -r /tmp/libfuse/.* /workspace/particle-os/libfuse/ 2>/dev/null || true + # Verify files are copied + ls -la /workspace/particle-os/libfuse/ - name: Setup apt-cacher-ng run: | @@ -131,7 +144,7 @@ jobs: # Run the build script in Debian container docker run --rm \ --add-host=host.docker.internal:host-gateway \ - -v $(pwd):/workspace \ + -v /workspace/particle-os/libfuse:/workspace \ -w /workspace \ debian:trixie \ bash /workspace/build_libfuse.sh