Added actions
Some checks failed
Cargo Build & Test / Timo's Workouts - latest (beta) (push) Failing after 23s
Cargo Build & Test / Timo's Workouts - latest (nightly) (push) Failing after 3s
Cargo Build & Test / Timo's Workouts - latest (stable) (push) Failing after 3s
Cargo Build & Test / Push to container registry (push) Failing after 2s

This commit is contained in:
2025-07-18 10:24:28 +02:00
parent ad98db7f7c
commit 3db46d0130

53
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,53 @@
name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Timo's Workouts - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
push:
name: Push to container registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- name: Login in to the container registry
uses: docker/login-action
with:
registry: gitea.xeovalyte.dev
username: ${{ gitea.actor }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action
with:
images: gitea.xeovalyte.dev/${{ gitea.repository }}
- name: Build an publish
id: push
uses: docker/build-push-action
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}