Update .gitea/workflows/docker-test.yml
All checks were successful
Windows Build / build (push) Successful in 2s
All checks were successful
Windows Build / build (push) Successful in 2s
This commit is contained in:
parent
da5146e487
commit
bef2cb8a12
@ -1,15 +1,21 @@
|
|||||||
name: Build, test and deploy
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
"Build, test and deploy":
|
build:
|
||||||
strategy:
|
runs-on: windows-host # Must match runner's label in config.yaml
|
||||||
fail-fast: false
|
container:
|
||||||
runs-on: docker
|
image: mcr.microsoft.com/windows/servercore:ltsc2019
|
||||||
defaults:
|
options: --isolation=process --entrypoint cmd /c "timeout 5" # Test container startup
|
||||||
run:
|
|
||||||
shell: pwsh
|
|
||||||
steps:
|
steps:
|
||||||
- name: Identify trigger
|
- name: Debug container
|
||||||
run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
run: echo "Container is alive!"
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
- 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