From 8fb36ace8ea959f963b487b99e300d249ade4dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Thu, 5 Sep 2024 18:40:34 +0200 Subject: [PATCH] ci: port github runners to forgejo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- {.github => .forgejo}/CODEOWNERS | 0 {.github => .forgejo}/workflows/audit.yml | 2 +- .../workflows/conventional-commits.yml | 2 +- {.github => .forgejo}/workflows/flake.yml | 6 +- .../workflows/unit-tests.yml | 4 +- .github/dependabot.yml | 21 ---- .github/workflows/unit-tests-bsd.yml | 97 ------------------- 7 files changed, 7 insertions(+), 125 deletions(-) rename {.github => .forgejo}/CODEOWNERS (100%) rename {.github => .forgejo}/workflows/audit.yml (94%) rename {.github => .forgejo}/workflows/conventional-commits.yml (94%) rename {.github => .forgejo}/workflows/flake.yml (95%) rename {.github => .forgejo}/workflows/unit-tests.yml (93%) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/unit-tests-bsd.yml diff --git a/.github/CODEOWNERS b/.forgejo/CODEOWNERS similarity index 100% rename from .github/CODEOWNERS rename to .forgejo/CODEOWNERS diff --git a/.github/workflows/audit.yml b/.forgejo/workflows/audit.yml similarity index 94% rename from .github/workflows/audit.yml rename to .forgejo/workflows/audit.yml index 2b68b82..8ea848c 100644 --- a/.github/workflows/audit.yml +++ b/.forgejo/workflows/audit.yml @@ -14,7 +14,7 @@ on: - 'deny.toml' jobs: security_audit: - runs-on: ubuntu-latest + runs-on: native steps: - uses: actions/checkout@v4 - uses: taiki-e/install-action@cargo-deny diff --git a/.github/workflows/conventional-commits.yml b/.forgejo/workflows/conventional-commits.yml similarity index 94% rename from .github/workflows/conventional-commits.yml rename to .forgejo/workflows/conventional-commits.yml index c1d7b4c..303bc95 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.forgejo/workflows/conventional-commits.yml @@ -14,7 +14,7 @@ concurrency: jobs: build: name: Conventional Commits - runs-on: ubuntu-latest + runs-on: native steps: - uses: actions/checkout@v4 - uses: webiny/action-conventional-commits@v1.3.0 diff --git a/.github/workflows/flake.yml b/.forgejo/workflows/flake.yml similarity index 95% rename from .github/workflows/flake.yml rename to .forgejo/workflows/flake.yml index 728bb81..5389032 100644 --- a/.github/workflows/flake.yml +++ b/.forgejo/workflows/flake.yml @@ -30,14 +30,14 @@ concurrency: jobs: flake-checker: name: Flake Checker - runs-on: ubuntu-22.04 + 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: ubuntu-22.04 + runs-on: native steps: - uses: actions/checkout@v4 - name: Install Nix @@ -52,7 +52,7 @@ jobs: strategy: matrix: target: [x86_64-linux] - runs-on: ubuntu-22.04 + runs-on: native steps: - uses: actions/checkout@v4 - name: Install Nix diff --git a/.github/workflows/unit-tests.yml b/.forgejo/workflows/unit-tests.yml similarity index 93% rename from .github/workflows/unit-tests.yml rename to .forgejo/workflows/unit-tests.yml index e083b91..93eac61 100644 --- a/.github/workflows/unit-tests.yml +++ b/.forgejo/workflows/unit-tests.yml @@ -26,11 +26,11 @@ env: RUSTFLAGS: --deny warnings jobs: unit-tests: - runs-on: ${{ matrix.os }} + runs-on: ${{ matxrix.os }} continue-on-error: ${{ matrix.rust == 'nightly' }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [native] rust: [1.70.0, stable, beta, nightly] steps: - name: Checkout repository diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 552160b..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,21 +0,0 @@ -# SPDX-FileCopyrightText: 2024 Christina Sørensen -# -# SPDX-License-Identifier: EUPL-1.2 - -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "cargo" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "weekly" - - package-ecosystem: "github-actions" - # Workflow files stored in the - # default location of `.github/workflows` - directory: "/" - schedule: - interval: "weekly" diff --git a/.github/workflows/unit-tests-bsd.yml b/.github/workflows/unit-tests-bsd.yml deleted file mode 100644 index f31934f..0000000 --- a/.github/workflows/unit-tests-bsd.yml +++ /dev/null @@ -1,97 +0,0 @@ -# SPDX-FileCopyrightText: 2024 Christina Sørensen -# -# SPDX-License-Identifier: EUPL-1.2 - -name: Unit tests (BSD) -on: - push: - branches: [main] - paths: - - '.github/workflows/unit-tests-bsd.yml' - - 'src/**' - - 'Cargo.*' - - build.rs - pull_request: - branches: [main] - paths: - - '.github/workflows/unit-tests-bsd.yml' - - 'src/**' - - 'Cargo.*' - - build.rs -concurrency: - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} - cancel-in-progress: true -jobs: - unit-tests-freebsd: - runs-on: ubuntu-22.04 - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Compile - uses: vmactions/freebsd-vm@v1 - with: - release: '14.1' - usesh: true - prepare: | - pkg install -y rust git - cargo install cargo-hack - git config --global --add safe.directory /home/runner/work/eza/eza - run: | - set -e - export CARGO_TERM_COLOR="always" - export RUSTFLAGS="--deny warnings" - cargo fmt --check - cargo clippy -- -D warnings - cargo hack test - unit-tests-netbsd: - runs-on: ubuntu-22.04 - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Compile - uses: vmactions/netbsd-vm@v1 - with: - release: '10.0' - usesh: true - prepare: | - PATH="/root/.cargo/bin:/usr/pkg/sbin:/usr/pkg/bin:$PATH" - PKG_PATH="https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All/" - export PATH PKG_PATH - /usr/sbin/pkg_add pkgin - pkgin -y install rust git - cargo install cargo-hack - git config --global --add safe.directory /home/runner/work/eza/eza - run: | - set -e - export CARGO_TERM_COLOR="always" - export RUSTFLAGS="--deny warnings" - cargo fmt --check - cargo clippy -- -D warnings - cargo hack test - unit-tests-openbsd: - runs-on: ubuntu-22.04 - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Compile - uses: vmactions/openbsd-vm@v1 - with: - release: '7.4' - usesh: true - prepare: | - pkg_add rust rust-rustfmt rust-clippy git - cargo install cargo-hack - git config --global --add safe.directory /home/runner/work/eza/eza - run: | - set -e - export CARGO_TERM_COLOR="always" - export RUSTFLAGS="--deny warnings" - cargo fmt --check - cargo clippy -- -D warnings - cargo hack test