-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
51 lines (42 loc) · 1.34 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
init:
git init
git add .
git commit -m "init"
git branch -M main
git remote add origin git@github.com:labring-actions/rbuild-runtime.git
pip install pre-commit
cargo install --locked cargo-deny
cargo install typos-cli
cargo install git-cliff
cargo install cargo-nextest --locked
pre-commit install
sed -i '' 's#rust-learn-days/template#labring-actions/rbuild-runtime#g' cliff.toml
install-cross:
cargo install cross --git https://github.com/cross-rs/cross
build:
rustup target add ${target}
cargo build --target ${target}
cross-build:
rustup target add ${target}
cross build --target ${target}
cross-build-release:
rustup target add ${target}
cross build --release --target ${target}
mkdir -p output/${target}
cp target/${target}/release/rbuild-runtime output/${target}/rbuild-runtime
cd output/${target} && tar -zcvf rbuild-runtime-${target}.tar.gz rbuild-runtime
build-release:
rustup target add ${target}
cargo build --release --target ${target}
mkdir -p output/${target}
cp target/${target}/release/rbuild-runtime output/${target}/rbuild-runtime
cd output/${target} && tar -zcvf rbuild-runtime-${target}.tar.gz rbuild-runtime
changelog:
git-cliff --config cliff.toml > CHANGELOG.md
validate:
file files/sealos
line:
tokei .
check:
cargo check
cargo fmt -- --check