blobfisch/.gitea/workflows/build.yml

36 lines
884 B
YAML
Raw Permalink Normal View History

2024-05-17 14:17:11 +02:00
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
2024-05-17 14:17:11 +02:00
with:
path: target/release/blobfisch