fix: update CI workflow to use Gitea Actions compatible syntax
Some checks failed
CI / build (push) Failing after 3s
CI / lint (push) Failing after 3s
CI / format (push) Failing after 3s

This commit is contained in:
2026-02-04 15:57:15 +00:00
parent cbafec8b5e
commit f0658a99bc

View File

@@ -12,17 +12,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Set up Rust
run: |
rustup install stable
rustup default stable
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgit2-dev pkg-config
run: sudo apt-get update && sudo apt-get install -y libgit2-dev pkg-config
- name: Build project
run: cargo build --release
@@ -35,35 +31,26 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Set up Rust
run: |
rustup install stable
rustup default stable
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgit2-dev pkg-config
run: sudo apt-get update && sudo apt-get install -y libgit2-dev pkg-config
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings
run: cargo clippy --all-features -- -D warnings
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Set up Rust
run: |
rustup install stable
rustup default stable
- name: Check formatting
run: cargo fmt --all -- --check