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