Fix DNS resolution issue: replace actions/checkout with direct git clone
Some checks failed
Build libfuse / Build and Test (push) Failing after 33s

- 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.
This commit is contained in:
robojerk 2025-09-07 15:44:39 -07:00
parent f5957b1a71
commit 70b350154e

View file

@ -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