ci: add some basic ci/cd
Some checks failed
Cargo Build & Test / Rust project - latest (push) Failing after 3s
Some checks failed
Cargo Build & Test / Rust project - latest (push) Failing after 3s
This commit is contained in:
parent
6f9e7c21c8
commit
85c0f24a34
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/build-and-upload.yml
Normal file
26
.forgejo/workflows/build-and-upload.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
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
|
||||||
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ 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