build: remove woodpecker CI usage
All checks were successful
Test / toml (push) Successful in 5s
Test / build (map[name:nightly]) (push) Successful in 18s
Test / build (map[name:stable]) (push) Successful in 15s
Release Please / Release-plz (push) Successful in 9s

This commit is contained in:
Paul Campbell 2025-01-12 15:01:30 +00:00
parent 95b0a6dd40
commit 55356eb302
2 changed files with 20 additions and 46 deletions

View file

@ -13,6 +13,17 @@ env:
CARGO_TERM_COLOR: always
jobs:
toml:
runs-on: docker
container:
image:
docker.io/tamasfe/taplo:0.9.3
steps:
- name: toml format
run: taplo format --check
build:
runs-on: docker
@ -33,6 +44,15 @@ jobs:
- name: Check TODOs
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0
- name: Ignored Files
run: |
IGNORED=$(git ls-files --cached -i --exclude-standard)
if [[ "$IGNORED" ]]
then
echo "Ignored files present:\n$IGNORED"
exit 1
fi
- name: Machete
run: cargo +${{ matrix.toolchain.name }} machete

View file

@ -1,46 +0,0 @@
variables:
- &rust_image "docker.io/rust:1.84.0"
- &slow_check_paths
- path:
# rust source code
- "crates/**"
- "src/**"
- "tests/**"
- "**/Cargo.toml"
- "Cargo.lock"
# database migrations
- "migrations/**"
# config files and scripts used by ci
- ".woodpecker.yml"
steps:
toml_fmt:
image: docker.io/tamasfe/taplo:0.9.3
commands:
- taplo format --check
cargo_machete:
image: *rust_image
commands:
- wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
- tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
- rm cargo-binstall-x86_64-unknown-linux-musl.tgz
- mv cargo-binstall /usr/local/cargo/bin
- cargo binstall -y cargo-machete
- cargo machete
ignored_files:
image: docker.io/alpine:latest
commands:
- apk add git
- IGNORED=$(git ls-files --cached -i --exclude-standard)
- if [[ "$IGNORED" ]]; then echo "Ignored files present:\n$IGNORED\n"; exit 1; fi
publish_to_crates_io:
image: *rust_image
commands:
- cargo login "$CARGO_REGISTRY_TOKEN"
- cargo publish --registry crates-io --no-verify
secrets: [cargo_registry_token]
when:
event: tag