blobfisch/.gitea/workflows/build.yml
Lukas Langrock 900bc01f9d
All checks were successful
Continuous Integration / Build & Test (push) Successful in 2m48s
Use upload-artifacts@v4 (#1)
This came new in Gitea `v1.22`

Reviewed-on: #1
2024-05-27 22:22:33 +02:00

36 lines
884 B
YAML

on: [push, pull_request]
name: Continuous Integration
jobs:
main:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- name: Check out repository code
uses: actions/checkout@v3
- name: Run build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all
- name: Run clippy lint checks
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all
- name: Upload build artifacts
uses: christopherhx/gitea-upload-artifact@v4
with:
path: target/release/blobfisch