feat: moved to gitea workflows for CI/CD
Some checks failed
Build Rust binary in release mode / build (push) Failing after 5s

Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
This commit is contained in:
Louis Vallat 2024-09-08 15:27:11 +02:00
parent cf1de29416
commit 79179b9905
Signed by: louis
SSH Key Fingerprint: SHA256:usb9EA8eIADT+Bt0Ne8ZkISCbgPSOYkVgS2iZqdZj8s
2 changed files with 21 additions and 15 deletions

View File

@ -0,0 +1,21 @@
name: "Build Rust binary in release mode"
on: push
jobs:
build:
name: "build"
runs-on: rust-bookworm
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Compile binary in release mode
run: |
cargo build --release
- name: Run with lyrics from Hotel California
run: |
printf "${{ vars.HOTEL_CALIFORNIA_LYRICS }}" > /tmp/input
cargo run --release -- /tmp/input
- name: Run with lyrics from The Unforgiven
run: |
printf "${{ vars.THE_UNFORGIVEN_LYRICS }}" > /tmp/input
cargo run --release -- /tmp/input

View File

@ -1,15 +0,0 @@
default:
image: rust
stages:
- build
metallica-the-unforgiven:
stage: build
script:
- cargo run --release -- ${THE_UNFORGIVEN_INPUT}
eagles-hotel-california:
stage: build
script:
- cargo run --release -- ${HOTEL_CALIFORNIA_INPUT}