From 8dc6f4305cbec51ee2444f5d8d67ee6064296f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Thu, 5 Sep 2024 21:02:09 +0200 Subject: [PATCH] ci: removed unused cheks, add funding for github MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- .forgejo/workflows/flake.yml | 63 ------------------- .forgejo/workflows/unit-tests.yml | 51 --------------- .../demo.yaml => .github/FUNDING.yml | 7 +-- 3 files changed, 1 insertion(+), 120 deletions(-) delete mode 100644 .forgejo/workflows/flake.yml delete mode 100644 .forgejo/workflows/unit-tests.yml rename .forgejo/workflows/demo.yaml => .github/FUNDING.yml (52%) diff --git a/.forgejo/workflows/flake.yml b/.forgejo/workflows/flake.yml deleted file mode 100644 index 5389032..0000000 --- a/.forgejo/workflows/flake.yml +++ /dev/null @@ -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 diff --git a/.forgejo/workflows/unit-tests.yml b/.forgejo/workflows/unit-tests.yml deleted file mode 100644 index 93eac61..0000000 --- a/.forgejo/workflows/unit-tests.yml +++ /dev/null @@ -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 diff --git a/.forgejo/workflows/demo.yaml b/.github/FUNDING.yml similarity index 52% rename from .forgejo/workflows/demo.yaml rename to .github/FUNDING.yml index ee78167..c75496a 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.github/FUNDING.yml @@ -2,9 +2,4 @@ # # SPDX-License-Identifier: EUPL-1.2 -on: [push] -jobs: - test: - runs-on: native - steps: - - run: echo All Good +github: cafkafk