From cddbbfc09ef5343ebb84e39c74d1bcbec4eaf1c4 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 8 Dec 2025 23:51:05 +0100 Subject: [PATCH] added some Workflows --- .gitea/workflows/arm64.yaml | 29 ++++++++++++++++++++++++++ .gitea/workflows/linux_x64.yaml | 29 ++++++++++++++++++++++++++ .gitea/workflows/linux_x64_docker.yaml | 22 +++++++++++++++++++ .gitea/workflows/win_x64.yaml | 29 ++++++++++++++++++++++++++ 4 files changed, 109 insertions(+) create mode 100644 .gitea/workflows/arm64.yaml create mode 100644 .gitea/workflows/linux_x64.yaml create mode 100644 .gitea/workflows/linux_x64_docker.yaml create mode 100644 .gitea/workflows/win_x64.yaml diff --git a/.gitea/workflows/arm64.yaml b/.gitea/workflows/arm64.yaml new file mode 100644 index 0000000..d02ac59 --- /dev/null +++ b/.gitea/workflows/arm64.yaml @@ -0,0 +1,29 @@ +name: Build ARM64 Linux + +on: + push: + branches: + - main + +jobs: + build-arm64: + runs-on: [self-hosted, linux, arm64, dotnet] + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build ARM64 Linux + run: dotnet publish -c Release -r linux-arm64 --self-contained false -o ./artifacts/linux-arm64 + + - name: Upload ARM64 artifact + uses: actions/upload-artifact@v3 + with: + name: linux-arm64 + path: ./artifacts/linux-arm64 diff --git a/.gitea/workflows/linux_x64.yaml b/.gitea/workflows/linux_x64.yaml new file mode 100644 index 0000000..a3266f3 --- /dev/null +++ b/.gitea/workflows/linux_x64.yaml @@ -0,0 +1,29 @@ +name: Build Linux x64 + +on: + push: + branches: + - main + +jobs: + build-linux-x64: + runs-on: [self-hosted, linux, arm64, linux64, dotnet] + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build Linux x64 + run: dotnet publish -c Release -r linux-x64 --self-contained false -o ./artifacts/linux-x64 + + - name: Upload Linux x64 artifact + uses: actions/upload-artifact@v3 + with: + name: linux-x64 + path: ./artifacts/linux-x64 diff --git a/.gitea/workflows/linux_x64_docker.yaml b/.gitea/workflows/linux_x64_docker.yaml new file mode 100644 index 0000000..182c0d8 --- /dev/null +++ b/.gitea/workflows/linux_x64_docker.yaml @@ -0,0 +1,22 @@ +name: Build Docker Linux x64 + +on: + push: + branches: + - main + +jobs: + build-docker-linux-x64: + runs-on: [self-hosted, linux, arm64, linux64-docker, docker] + steps: + - uses: actions/checkout@v4 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Linux x64 Docker Image + run: | + docker buildx build \ + --platform linux/amd64 \ + -t myapp:linux-x64 \ + --load . diff --git a/.gitea/workflows/win_x64.yaml b/.gitea/workflows/win_x64.yaml new file mode 100644 index 0000000..8924b9e --- /dev/null +++ b/.gitea/workflows/win_x64.yaml @@ -0,0 +1,29 @@ +name: Build Windows x64 + +on: + push: + branches: + - main + +jobs: + build-windows-x64: + runs-on: [self-hosted, linux, arm64, windows-exe, dotnet] + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build Windows x64 + run: dotnet publish -c Release -r win-x64 --self-contained true -o ./artifacts/windows-x64 + + - name: Upload Windows artifact + uses: actions/upload-artifact@v3 + with: + name: windows-x64 + path: ./artifacts/windows-x64