aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat
-rw-r--r--.forgejo/workflows/build.yml (renamed from .github/workflows/build.yml)42+23 −19
-rw-r--r--.github/workflows/cla.yml30+0 −30
-rw-r--r--Cargo.toml2+1 −1
-rw-r--r--README.md10+5 −5
-rw-r--r--crates/recluse/src/controller_web.rs4+2 −2
5 files changed, 31 insertions, 57 deletions
diff --git a/.github/workflows/build.yml b/.forgejo/workflows/build.yml
index e21f530..5375edb 100644
--- a/.github/workflows/build.yml
+++ b/.forgejo/workflows/build.yml
@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: 2026 Nikolay Govorov <me@govorov.online>
+# Copyright (c) 2026 Nikolay Govorov
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Build
@@ -17,18 +17,22 @@ env:
jobs:
lint:
name: Static checks
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- - uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
- - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
+ - uses: https://github.com/dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
+ with:
+ components: clippy,rustfmt
+ - uses: https://github.com/Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
- name: Check licenses
- uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
+ uses: https://github.com/fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
- name: Check dependencies
- uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # 0.19.0
+ run: |
+ cargo install --locked cargo-deny
+ cargo deny check
- name: Check formatting
run: cargo fmt --all --check
@@ -46,18 +50,18 @@ jobs:
include:
- runner: ubuntu-24.04
arch: amd64
- - runner: ubuntu-24.04-arm
- arch: arm64
+ # - runner: ubuntu-24.04-arm
+ # arch: arm64
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- - uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
+ - uses: https://github.com/dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
with:
components: llvm-tools-preview
- - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
+ - uses: https://github.com/Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
- name: Import GPG key
- uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec #v6.3.0
+ uses: https://github.com/crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec #v6.3.0
with:
passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -96,12 +100,12 @@ jobs:
run: cargo llvm-cov --all-features --workspace --lcov --output-path coverage.lcov
- name: Upload coverage artifact
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ uses: https://code.forgejo.org/forgejo/upload-artifact@cb8afe72b42edc798abfb8fcb556cf660d894245 # v5
with:
name: coverage-lcov-${{ matrix.arch }}
path: coverage.lcov
- - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ - uses: https://code.forgejo.org/forgejo/upload-artifact@cb8afe72b42edc798abfb8fcb556cf660d894245 # v5
with:
name: packages-${{ matrix.arch }}
path: dist/*
@@ -114,15 +118,15 @@ jobs:
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- - uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
- - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
+ - uses: https://github.com/dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
+ - uses: https://github.com/Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
- name: Run smoke tests against local instance
run: ./tests/smoke/run-local.sh
publish:
name: Publish dev build
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
needs: [build, smoke]
if: github.ref == 'refs/heads/main'
permissions:
@@ -134,7 +138,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y aptly rclone createrepo-c
- - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
+ - uses: https://code.forgejo.org/forgejo/download-artifact@1314311ddb542af343a82d478ac786ceada4143a # v5
with:
pattern: packages-*
path: dist
@@ -142,7 +146,7 @@ jobs:
# Configure GPG keys
- name: Import GPG key
- uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec #v6.3.0
+ uses: https://github.com/crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec #v6.3.0
with:
passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -167,7 +171,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
- uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
+ uses: https://github.com/softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
name: ${{ env.RELEASE_TAG }}
tag_name: ${{ env.RELEASE_TAG }}
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
deleted file mode 100644
--- a/.github/workflows/cla.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-# SPDX-FileCopyrightText: 2026 Nikolay Govorov <me@govorov.online>
-# SPDX-License-Identifier: AGPL-3.0-or-later
-
-name: "CLA Assistant"
-
-on:
- issue_comment:
- types: [created]
- pull_request_target:
- types: [opened, closed, synchronize]
-
-jobs:
- CLAAssistant:
- runs-on: ubuntu-latest
- permissions:
- actions: write
- contents: write
- statuses: write
- pull-requests: write
- steps:
- - name: "CLA Assistant"
- if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
- uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- branch: "main"
- allowlist: mrdimidium
- path-to-signatures: "LICENSES/cla.json"
- path-to-document: "https://github.com/mrdimidium/recluse/blob/main/CLA.md"
diff --git a/Cargo.toml b/Cargo.toml
index 7b1d537..a074525 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,7 +12,7 @@ version = "0.1.0"
license = "AGPL-3.0-or-later"
authors = ["Nikolay Govorov <me@govorov.online>"]
homepage = "https://pkg.earth"
-repository = "https://github.com/mrdimidium/recluse"
+repository = "https://codeberg.org/mrdimidium/recluse"
[workspace.dependencies]
# local dependencies
diff --git a/README.md b/README.md
index ff9ac52..190607f 100644
--- a/README.md
+++ b/README.md
@@ -13,8 +13,8 @@ is **not** intended for production use.
```bash
sudo apt install curl gnupg
-curl -fsSL https://github.com/mrdimidium/recluse/releases/download/dev/public.gpg | sudo gpg --dearmor -o /usr/share/keyrings/recluse.gpg
-echo "deb [signed-by=/usr/share/keyrings/recluse.gpg] https://recluse.hel1.your-objectstorage.com/apt/ dev main" | sudo tee /etc/apt/sources.list.d/recluse.list
+curl -fsSL https://codeberg.org/mrdimidium/recluse/releases/download/dev/public.gpg | sudo gpg --dearmor -o /usr/share/keyrings/recluse.gpg
+echo "deb [signed-by=/usr/share/keyrings/recluse.gpg] https://dimidiumlabs.fsn1.your-objectstorage.com/apt/ dev main" | sudo tee /etc/apt/sources.list.d/recluse.list
sudo apt update && sudo apt install recluse
sudo systemctl enable --now recluse
@@ -23,8 +23,8 @@ sudo systemctl enable --now recluse
**Fedora/RedHat:**
```bash
-sudo rpm --import https://github.com/mrdimidium/recluse/releases/download/dev/public.gpg
-sudo dnf config-manager --add-repo https://recluse.hel1.your-objectstorage.com/rpm/
+sudo rpm --import https://codeberg.org/mrdimidium/recluse/releases/download/dev/public.gpg
+sudo dnf config-manager --add-repo https://dimidiumlabs.fsn1.your-objectstorage.com/rpm/
sudo dnf install recluse
sudo systemctl enable --now recluse
@@ -35,7 +35,7 @@ sudo systemctl enable --now recluse
1. Install build dependencies:
- Fedora/RedHat: `sudo dnf install gcc openssl-devel pkg-config`
- Debian/Ubuntu: `sudo apt install build-essential libssl-dev pkg-config`
-1. Clone repo: `git clone https://github.com/mrdimidium/recluse.git && cd recluse`
+1. Clone repo: `git clone https://codeberg.org/mrdimidium/recluse.git && cd recluse`
1. Build from source: `cargo build --release`
1. Install manually
diff --git a/crates/recluse/src/controller_web.rs b/crates/recluse/src/controller_web.rs
index 6d4d176..83c4931 100644
--- a/crates/recluse/src/controller_web.rs
+++ b/crates/recluse/src/controller_web.rs
@@ -178,7 +178,7 @@ impl WebController {
p {
"Recluse is open source software licensed under " a href="https://www.gnu.org/licenses/agpl-3.0.html" { "AGPL-3.0" } ". "
- "Source code is available on " a href="https://github.com/mrdimidium/recluse" { "GitHub" } ". "
+ "Source code is available on " a href="https://codeberg.org/mrdimidium/recluse" { "Codeberg" } ". "
"A list of dependency licenses " a href="/about/licenses" { "is available" } "."
}
@@ -335,7 +335,7 @@ impl WebController {
p {
"Source code is available on "
- a href="https://github.com/mrdimidium/recluse" { "GitHub" }
+ a href="https://codeberg.org/mrdimidium/recluse" { "Codeberg" }
". The full license text is included below."
}