22 lines
700 B
YAML
22 lines
700 B
YAML
|
name: "Build Rust binary in release mode"
|
||
|
on: push
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
name: "Build and run binary"
|
||
|
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
|