From 79179b9905a255f9194a6c08c733618f282ce3ef 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 | 21 +++++++++++++++++++++ .gitlab-ci.yml | 15 --------------- 2 files changed, 21 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..e94f5c9 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -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 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}