feat: added CI
Some checks are pending
Rust CI Showcase / build (push) Waiting to run

This commit is contained in:
Rakowskiii 2025-02-27 16:38:14 +01:00
parent d9ce64aa7a
commit 6f6ff73ada

View File

@ -0,0 +1,28 @@
name: Rust CI Showcase
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
- name: Inject Secret
env:
SECRET_TOKEN: ${{ secrets.MY_SECRET }}
run: |
echo "Building with SECRET_TOKEN=${SECRET_TOKEN}"
cargo build --release
- name: Run Tests
run: cargo test