* Create rust.yml --------- Co-authored-by: GnoCiYeH <heyicong@dragonos.org>
@@ -0,0 +1,38 @@
+name: Rust
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+env:
+ CARGO_TERM_COLOR: always
+jobs:
+ build-linux:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Build
+ run: make build-linux
+ build-dragonos:
+ run: make build-dragonos
+ fmt-check:
+ run: make fmt-check
@@ -0,0 +1,3 @@
+[toolchain]
+components = ["rust-src", "rustfmt"]
+targets = [ "x86_64-unknown-linux-musl" ]
@@ -1,3 +1,3 @@
+pub mod appconfig;
pub mod cmd;
pub mod lastline_cmd;
-pub mod appconfig;