diff --git a/.gitea/workflows/docker-test.yml b/.gitea/workflows/docker-test.yml index 41d0cc9..fe3f2c8 100644 --- a/.gitea/workflows/docker-test.yml +++ b/.gitea/workflows/docker-test.yml @@ -1,21 +1,15 @@ +name: Build, test and deploy +on: [push] + jobs: - build: - 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 "timeout 5" # Test container startup + "Build, test and deploy": + strategy: + fail-fast: false + runs-on: windows-2019 + defaults: + run: + shell: powershell steps: - - 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 + - name: Identify trigger + run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - uses: actions/checkout@v3 \ No newline at end of file