diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..ece873b --- /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: | + echo ${{ vars.HOTEL_CALIFORNIA_LYRICS_BASE64 }} | base64 --decode > /tmp/input + cargo run --release -- /tmp/input + - name: Run with lyrics from The Unforgiven + run: | + echo ${{ vars.THE_UNFORGIVEN_LYRICS_BASE64 }} | base64 --decode > /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}