31 lines
533 B
YAML
31 lines
533 B
YAML
name: Rust Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: https://gitea.com/actions/checkout@v4
|
|
|
|
- name: Setup Rust + Cache
|
|
id: rust
|
|
uses: https://git.ericxliu.me/eric/actions-rust/.gitea/actions/rust-cache@main
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
|
|
- name: Run
|
|
run: cargo run
|