ci: Add cargo check

This commit is contained in:
Wildan M
2025-12-10 12:52:08 +07:00
parent 2df5447272
commit 997fe9ff50
2 changed files with 135 additions and 5 deletions
+22 -5
View File
@@ -2,18 +2,35 @@ image: "redoxos/redoxer:latest"
stages:
- build
- cross-build
# TODO?
# - test
# TODO check if all drivers build
fmt:
stage: build
needs: []
script:
- rustup component add rustfmt
# TODO add more packages as they get formatted
- CHECK_ONLY=1 ./fmt.sh
# TODO: unit tests
x86_64:
stage: build
script:
- rustup component add rustfmt
- ./check.sh
i586:
stage: cross-build
script:
- ./check.sh --arch=i586
aarch64:
stage: cross-build
script:
- ./check.sh --arch=aarch64
riscv64gc:
stage: cross-build
script:
- ./check.sh --arch=riscv64gc