From c79ec0752476939d72c643865c5d5c4f7df4482f Mon Sep 17 00:00:00 2001 From: Dzuchun Date: Mon, 22 Dec 2025 22:15:13 +0000 Subject: [PATCH 1/2] Initial actions as I've been using them for a year, ig --- .forgejo/workflows/build.yml | 43 ++++++++++++++++++++++++++++++++++++ .forgejo/workflows/miri.yml | 25 +++++++++++++++++++++ .forgejo/workflows/typos.yml | 25 +++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 .forgejo/workflows/build.yml create mode 100644 .forgejo/workflows/miri.yml create mode 100644 .forgejo/workflows/typos.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..72c0da0 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,43 @@ +name: Build and Test + +on: + push: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + run_tests: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install rustup + uses: https://github.com/actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: cargo,rustfmt,clippy + + - name: install check-all-fetures + run: cargo install cargo-all-features + + - name: cargo check + env: + RUSTFLAGS: -D warnings + run: cargo check-all-features + + - name: rustfmt + run: cargo fmt --all -- --check + + - name: clippy + run: cargo clippy --all --tests -- -D warnings + + - name: cargo test + run: cargo test-all-features + + - name: cargo test on release + run: cargo test-all-features -- --release + diff --git a/.forgejo/workflows/miri.yml b/.forgejo/workflows/miri.yml new file mode 100644 index 0000000..699159a --- /dev/null +++ b/.forgejo/workflows/miri.yml @@ -0,0 +1,25 @@ +name: UB test + +on: + push: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + run_miri: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup toolchain + uses: https://github.com/actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + components: miri + + - name: run miri + run: MIRIFLAGS=-Zmiri-many-seeds=0..8 cargo +nightly miri test --all-targets diff --git a/.forgejo/workflows/typos.yml b/.forgejo/workflows/typos.yml new file mode 100644 index 0000000..6ed14e1 --- /dev/null +++ b/.forgejo/workflows/typos.yml @@ -0,0 +1,25 @@ +name: Spellcheck +on: + push: + branches: + - master + +jobs: + spellcheck: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install rustup + uses: https://github.com/actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: cargo + + - name: Install typos + run: cargo install typos-cli + + - name: Check spelling of source&docs + run: typos From cb5a730980041185c1066100b0adbbe950e8709e Mon Sep 17 00:00:00 2001 From: dzu Date: Thu, 5 Feb 2026 21:23:42 +0000 Subject: [PATCH 2/2] CI: add renovate action --- .forgejo/workflows/renovate.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .forgejo/workflows/renovate.yml diff --git a/.forgejo/workflows/renovate.yml b/.forgejo/workflows/renovate.yml new file mode 100644 index 0000000..4cea9bc --- /dev/null +++ b/.forgejo/workflows/renovate.yml @@ -0,0 +1,25 @@ +name: Renovate + +on: + workflow_dispatch: + push: + branches: + - 'master' + schedule: + - cron: '0 0 */2 * *' + +jobs: + rennovate: + runs-on: alpine + container: + image: git.dzuchun.ing/actions/renovate:latest + steps: + - name: Checkout code + uses: https://git.dzuchun.ing/actions/checkout@v1 + + - name: Run renovate + run: renovate + env: + RENOVATE_REPOSITORIES: ${{ forgejo.repository }} + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} + RENOVATE_GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}