Add .gitea/workflows/test-ci.yml
add cargo clippy test on pull requests
This commit is contained in:
parent
ae1be04ca5
commit
3865b9b3e4
1 changed files with 47 additions and 0 deletions
47
.gitea/workflows/test-ci.yml
Normal file
47
.gitea/workflows/test-ci.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-amd64:
|
||||
runs-on: [rust-latest, amd64-builder]
|
||||
steps:
|
||||
- name: System Info
|
||||
run: uname -m
|
||||
|
||||
- name: Setup
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y curl gnupg
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt install -y nodejs
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Clippy
|
||||
run: |
|
||||
rustup component add clippy
|
||||
cargo clippy
|
||||
|
||||
build-arm64:
|
||||
runs-on: [rust-latest, arm64-builder]
|
||||
steps:
|
||||
- name: System Info
|
||||
run: uname -m
|
||||
|
||||
- name: Setup
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y curl gnupg
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt install -y nodejs
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Clippy
|
||||
run: |
|
||||
rustup component add clippy
|
||||
cargo clippy
|
||||
Loading…
Add table
Add a link
Reference in a new issue