From 436e77483f73ab58683749367330d6f1e0aba098 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sun, 8 Sep 2024 15:27:11 +0200 Subject: [PATCH] feat: moved to gitea workflows for CI/CD Signed-off-by: Louis Vallat --- .gitea/workflows/build.yml | 24 ++++++++++++++++++++++++ .gitlab-ci.yml | 15 --------------- 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 .gitea/workflows/build.yml delete mode 100644 .gitlab-ci.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..752f9b4 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,24 @@ +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: | + echo "$HOTEL_CALIFORNIA_LYRICS" > /tmp/input + cat /tmp/input + echo "CAT FINISHED" + echo "$HOTEL_CALIFORNIA_LYRICS" + cargo run --release -- /tmp/input + - name: Run with lyrics from The Unforgiven + run: | + printf "%s" "$THE_UNFORGIVEN_LYRICS" > /tmp/input + cargo run --release -- /tmp/input diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 6ba9026..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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}