ci: removed unused cheks, add funding for github
All checks were successful
Security audit / security_audit (pull_request) Successful in 1m34s
Conventional Commits / Conventional Commits (pull_request) Successful in 10s

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2024-09-05 21:02:09 +02:00
parent 86938a9ec7
commit 8dc6f4305c
Signed by: cafkafk
GPG key ID: 26C542FD97F965CE
3 changed files with 1 additions and 120 deletions

View file

@ -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

View file

@ -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

View file

@ -2,9 +2,4 @@
#
# SPDX-License-Identifier: EUPL-1.2
on: [push]
jobs:
test:
runs-on: native
steps:
- run: echo All Good
github: cafkafk