From d50e47ba548a75f59ccce60bab1c23ea93911e44 Mon Sep 17 00:00:00 2001 From: Caznix Date: Fri, 11 Apr 2025 14:50:34 -0400 Subject: [PATCH] fix:manually set up docker-in-docker --- .forgejo/workflows/rust.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/rust.yml b/.forgejo/workflows/rust.yml index 7457881..e8a7730 100644 --- a/.forgejo/workflows/rust.yml +++ b/.forgejo/workflows/rust.yml @@ -33,8 +33,24 @@ jobs: - name: 📥 Checkout source uses: actions/checkout@v4 + - name: 🐳 Setup Docker-in-Docker + run: | + # Install Docker using the convenience script + curl -fsSL https://get.docker.com -o get-docker.sh + sh get-docker.sh + + # Start Docker daemon directly (instead of using service) + sudo dockerd & + + # Give the Docker daemon a moment to initialize + sleep 10 + + # Verify Docker is working + docker info || true + docker --version + - name: 🛠️ Install Rust toolchain - uses: https://github.com/actions-rs/toolchain@v1 + uses: https://github.com/actions-rs/toolchain@v1 with: toolchain: stable target: ${{ matrix.target }} @@ -57,4 +73,4 @@ jobs: uses: https://code.forgejo.org/forgejo/upload-artifact@v4 with: name: ${{ matrix.binary_name }} - path: artifacts/${{ matrix.binary_name }} + path: artifacts/${{ matrix.binary_name }} \ No newline at end of file