[chore](trx-rs): add Gitea Actions CI pipeline #2

Merged
sjg merged 8 commits from ci/gitea-actions into main 2026-07-18 12:39:58 +02:00
Showing only changes of commit c7470acc1c - Show all commits
+14 -6
View File
@@ -27,10 +27,10 @@ jobs:
- name: Set up Rust
run: |
export PATH="$HOME/.cargo/bin:$PATH"
if ! command -v rustup >/dev/null 2>&1; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
fi
rustup toolchain install stable --profile minimal \
--component rustfmt --component clippy
@@ -47,10 +47,14 @@ jobs:
restore-keys: cargo-${{ runner.os }}-
- name: rustfmt
run: cargo fmt --all -- --check
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo fmt --all -- --check
- name: clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo clippy --workspace --all-targets --all-features -- -D warnings
test:
runs-on: ubuntu-latest
@@ -66,10 +70,10 @@ jobs:
- name: Set up Rust
run: |
export PATH="$HOME/.cargo/bin:$PATH"
if ! command -v rustup >/dev/null 2>&1; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
fi
rustup toolchain install stable --profile minimal
rustup default stable
@@ -85,10 +89,14 @@ jobs:
restore-keys: cargo-${{ runner.os }}-
- name: Build
run: cargo build --workspace --all-targets --locked
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo build --workspace --all-targets --locked
- name: Test
run: cargo test --workspace --locked
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo test --workspace --locked
reuse:
runs-on: ubuntu-latest