fix: update CI workflow to use Gitea Actions compatible syntax
This commit is contained in:
@@ -12,17 +12,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Set up Rust
|
||||||
uses: actions-rs/toolchain@v1
|
run: |
|
||||||
with:
|
rustup install stable
|
||||||
toolchain: stable
|
rustup default stable
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: sudo apt-get update && sudo apt-get install -y libgit2-dev pkg-config
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libgit2-dev pkg-config
|
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
@@ -35,35 +31,26 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Set up Rust
|
||||||
uses: actions-rs/toolchain@v1
|
run: |
|
||||||
with:
|
rustup install stable
|
||||||
toolchain: stable
|
rustup default stable
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: sudo apt-get update && sudo apt-get install -y libgit2-dev pkg-config
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libgit2-dev pkg-config
|
|
||||||
|
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo clippy --all-features -- -D warnings
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: --all-features -- -D warnings
|
|
||||||
|
|
||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Set up Rust
|
||||||
uses: actions-rs/toolchain@v1
|
run: |
|
||||||
with:
|
rustup install stable
|
||||||
toolchain: stable
|
rustup default stable
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|||||||
Reference in New Issue
Block a user