build(forgejo): use rust action
This commit is contained in:
parent
c90aef3796
commit
d5e55c7119
2 changed files with 15 additions and 25 deletions
|
@ -1,7 +1,12 @@
|
||||||
# ./cargo/config
|
# ./cargo/config
|
||||||
[target.x86_64-unknown-linux-gnu]
|
[target.x86_64-unknown-linux-gnu]
|
||||||
linker = "/usr/bin/clang-15"
|
linker = "/usr/bin/clang-16"
|
||||||
rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold", "--cfg", "tokio_unstable"]
|
rustflags = [
|
||||||
|
"-C",
|
||||||
|
"link-arg=--ld-path=/usr/bin/mold",
|
||||||
|
"--cfg",
|
||||||
|
"tokio_unstable",
|
||||||
|
]
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
debug = 0
|
debug = 0
|
||||||
|
@ -10,4 +15,3 @@ strip = "debuginfo"
|
||||||
[env]
|
[env]
|
||||||
RUSTLOG = "hyper=warn"
|
RUSTLOG = "hyper=warn"
|
||||||
RUSTFLAGS = "--cfg tokio_unstable"
|
RUSTFLAGS = "--cfg tokio_unstable"
|
||||||
|
|
||||||
|
|
|
@ -17,36 +17,22 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Toolchain
|
|
||||||
uses: https://github.com/actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
uses: https://github.com/actions-rs/cargo@v1
|
uses: https://git.kemitix.net/kemitix/rust@v0.2.5
|
||||||
with:
|
with:
|
||||||
command: fmt
|
args: fmt --all -- --check
|
||||||
args: --all -- --check
|
|
||||||
|
|
||||||
- name: Update apt
|
|
||||||
run: apt-get update
|
|
||||||
|
|
||||||
- name: Install linkers
|
|
||||||
run: apt-get install -y clang-15 mold
|
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
uses: https://github.com/actions-rs/cargo@v1
|
uses: https://git.kemitix.net/kemitix/rust@v0.2.5
|
||||||
with:
|
with:
|
||||||
command: clippy
|
args: clippy -- -D warnings
|
||||||
args: -- -D warnings
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: https://github.com/actions-rs/cargo@v1
|
uses: https://git.kemitix.net/kemitix/rust@v0.2.5
|
||||||
with:
|
with:
|
||||||
command: build
|
args: build
|
||||||
# args: --release --all-features
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: https://github.com/actions-rs/cargo@v1
|
uses: https://git.kemitix.net/kemitix/rust@v0.2.5
|
||||||
with:
|
with:
|
||||||
command: test
|
args: test
|
||||||
|
|
Loading…
Reference in a new issue