feat: moved to gitea workflows for CI/CD
Some checks failed
Build Rust binary in release mode / build (push) Failing after 5s
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:
parent
cf1de29416
commit
79179b9905
21
.gitea/workflows/build.yml
Normal file
21
.gitea/workflows/build.yml
Normal 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
|
@ -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}
|
|
Loading…
Reference in New Issue
Block a user