From 16b7e49159bc4b6b9caf6d1125e692b36016512e Mon Sep 17 00:00:00 2001 From: monheim Date: Sun, 20 Apr 2025 22:28:59 +0200 Subject: [PATCH] Update .gitea/workflows/docker-test.yml --- .gitea/workflows/docker-test.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/docker-test.yml b/.gitea/workflows/docker-test.yml index 4d28353..41d0cc9 100644 --- a/.gitea/workflows/docker-test.yml +++ b/.gitea/workflows/docker-test.yml @@ -1,11 +1,21 @@ jobs: build: - runs-on: windows-cont # Must match your runner's label in config.yaml + runs-on: windows # Must match runner's label in config.yaml container: image: mcr.microsoft.com/windows/servercore:ltsc2019 - options: --isolation=process --entrypoint cmd /c # Force CMD as entrypoint - env: - ACTIONS_RUNNER_HOOK_JOB_STARTED: "echo Container started" # Debug hook + options: --isolation=process --entrypoint cmd /c "timeout 5" # Test container startup steps: - - name: Ping test - run: ping 127.0.0.1 -n 5 # Basic connectivity check \ No newline at end of file + - name: Debug container + run: echo "Container is alive!" + + - name: Install Rust + if: success() + run: | + curl -sSf -o rustup-init.exe https://win.rustup.rs/ + .\rustup-init.exe -y --default-toolchain stable + refreshenv + rustup component add rust-src + + - name: Build + if: success() + run: cargo build --release \ No newline at end of file