Update .gitea/workflows/docker-test.yml
All checks were successful
Windows Build / build (push) Successful in 6s
All checks were successful
Windows Build / build (push) Successful in 6s
This commit is contained in:
parent
0ba2325fe6
commit
16b7e49159
@ -1,11 +1,21 @@
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
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:
|
container:
|
||||||
image: mcr.microsoft.com/windows/servercore:ltsc2019
|
image: mcr.microsoft.com/windows/servercore:ltsc2019
|
||||||
options: --isolation=process --entrypoint cmd /c # Force CMD as entrypoint
|
options: --isolation=process --entrypoint cmd /c "timeout 5" # Test container startup
|
||||||
env:
|
|
||||||
ACTIONS_RUNNER_HOOK_JOB_STARTED: "echo Container started" # Debug hook
|
|
||||||
steps:
|
steps:
|
||||||
- name: Ping test
|
- name: Debug container
|
||||||
run: ping 127.0.0.1 -n 5 # Basic connectivity check
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user