From eeb8da3ba2ab8c905c0c28b40300385544e2aeb7 Mon Sep 17 00:00:00 2001 From: monheim Date: Sun, 20 Apr 2025 22:04:59 +0200 Subject: [PATCH] Update .gitea/workflows/docker-test.yml --- .gitea/workflows/docker-test.yml | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/docker-test.yml b/.gitea/workflows/docker-test.yml index 394c807..05d3a0b 100644 --- a/.gitea/workflows/docker-test.yml +++ b/.gitea/workflows/docker-test.yml @@ -1,19 +1,16 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] - jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest + build: + runs-on: windows-host + container: + image: mcr.microsoft.com/windows/servercore:ltsc2019 + options: --isolation=process steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository + - name: Install Rust run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + 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 + run: | + cargo build --release \ No newline at end of file