This commit is contained in:
parent
d9ce64aa7a
commit
6f6ff73ada
28
.gitea/workflows/rust-test.yml
Normal file
28
.gitea/workflows/rust-test.yml
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user