ci: removed unused cheks, add funding for github
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
86938a9ec7
commit
8dc6f4305c
3 changed files with 1 additions and 120 deletions
|
@ -1,63 +0,0 @@
|
||||||
# SPDX-FileCopyrightText: 2024 Christina Sørensen
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/flake.yml'
|
|
||||||
- 'src/**'
|
|
||||||
- 'Cargo.*'
|
|
||||||
- "*.toml"
|
|
||||||
- "flake.*"
|
|
||||||
- "*.nix"
|
|
||||||
- "*.rs"
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/flake.yml'
|
|
||||||
- 'src/**'
|
|
||||||
- 'Cargo.*'
|
|
||||||
- "*.toml"
|
|
||||||
- "flake.*"
|
|
||||||
- "*.nix"
|
|
||||||
- "*.rs"
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
jobs:
|
|
||||||
flake-checker:
|
|
||||||
name: Flake Checker
|
|
||||||
runs-on: native
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Check Nix flake inputs
|
|
||||||
uses: DeterminateSystems/flake-checker-action@v8
|
|
||||||
check:
|
|
||||||
name: Check Nix Flake
|
|
||||||
runs-on: native
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install Nix
|
|
||||||
uses: DeterminateSystems/nix-installer-action@v13
|
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Nix Flake Check
|
|
||||||
run: nix flake check --all-systems
|
|
||||||
build:
|
|
||||||
name: Build Nix package
|
|
||||||
# if cross compilation is desired add 'aarch64-linux', 'x86_64-darwin' and 'aarch64-darwin' and fix the flake to support cross compilation.
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target: [x86_64-linux]
|
|
||||||
runs-on: native
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install Nix
|
|
||||||
uses: DeterminateSystems/nix-installer-action@v13
|
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Nix Build
|
|
||||||
run: nix build .#packages.${{ matrix.target }}.default
|
|
|
@ -1,51 +0,0 @@
|
||||||
# SPDX-FileCopyrightText: 2024 Christina Sørensen
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
|
||||||
|
|
||||||
name: Unit tests
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/unit-tests.yml'
|
|
||||||
- 'src/**'
|
|
||||||
- 'Cargo.*'
|
|
||||||
- build.rs
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/unit-tests.yml'
|
|
||||||
- 'src/**'
|
|
||||||
- 'Cargo.*'
|
|
||||||
- build.rs
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
RUSTFLAGS: --deny warnings
|
|
||||||
jobs:
|
|
||||||
unit-tests:
|
|
||||||
runs-on: ${{ matxrix.os }}
|
|
||||||
continue-on-error: ${{ matrix.rust == 'nightly' }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [native]
|
|
||||||
rust: [1.70.0, stable, beta, nightly]
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- run: rustup toolchain install ${{ matrix.rust }} --profile minimal
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
- name: Install cargo-hack
|
|
||||||
uses: nick-fields/retry@v3
|
|
||||||
with:
|
|
||||||
timeout_minutes: 5
|
|
||||||
max_attempts: 5
|
|
||||||
command: cargo install cargo-hack
|
|
||||||
- name: Run rustfmt checks
|
|
||||||
run: cargo fmt --check
|
|
||||||
- name: Run clippy lints
|
|
||||||
run: cargo clippy -- -D warnings
|
|
||||||
- name: Run unit tests
|
|
||||||
run: cargo hack test
|
|
|
@ -2,9 +2,4 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
on: [push]
|
github: cafkafk
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: native
|
|
||||||
steps:
|
|
||||||
- run: echo All Good
|
|
Loading…
Reference in a new issue