ci: add some basic ci/cd
Some checks failed
Cargo Build & Test / Rust project - latest (push) Failing after 2s
Some checks failed
Cargo Build & Test / Rust project - latest (push) Failing after 2s
This commit is contained in:
parent
6f9e7c21c8
commit
d51728debc
1 changed files with 28 additions and 0 deletions
28
.forgejo/workflows/build-and-upload.yml
Normal file
28
.forgejo/workflows/build-and-upload.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Cargo Build & Test
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
name: Rust project - latest
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
toolchain:
|
||||
- stable
|
||||
- beta
|
||||
- nightly
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
- run: cargo build --verbose
|
||||
- run: cargo upload
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue