Add dev containers, musl build
This commit is contained in:
parent
23cd51fc95
commit
d246c7c598
12 changed files with 117 additions and 49 deletions
50
.forgejo/workflows/verify.yaml
Normal file
50
.forgejo/workflows/verify.yaml
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
paths:
|
||||
- src/**
|
||||
- tests/**
|
||||
- static/graph.toml
|
||||
- .forgejo/**
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: docker
|
||||
timeout-minutes: 20
|
||||
container:
|
||||
image: rust:slim
|
||||
steps:
|
||||
- name: Install action dependencies
|
||||
run: apt-get install --no-install-recommends --update -y nodejs curl git
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-tags: true
|
||||
|
||||
- name: Setup Rust toolchain
|
||||
run: |
|
||||
rustup component add llvm-tools-preview
|
||||
rustup component add --toolchain nightly rustfmt clippy
|
||||
rustup target add x86_64-unknown-linux-gnu
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
|
||||
- name: Setup additional tooling
|
||||
run: .forgejo/workflows/setup-tools.sh
|
||||
|
||||
- name: Build
|
||||
run: just build
|
||||
|
||||
- name: Format
|
||||
run: just format-assess
|
||||
- name: Lint
|
||||
run: just lint-assess
|
||||
- name: Cargo check
|
||||
run: just check
|
||||
- name: Test
|
||||
run: just test
|
||||
- name: Assess test coverage
|
||||
run: just cover-assess
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue