Skip to content

Commit

Permalink
Create rust.yml (#1)
Browse files Browse the repository at this point in the history
* Create rust.yml

---------

Co-authored-by: GnoCiYeH <[email protected]>
  • Loading branch information
fslongjin and GnoCiYeH authored Mar 11, 2024
1 parent c1b8fcd commit 76304e9
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

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:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: make build-dragonos

fmt-check:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: make fmt-check
3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
components = ["rust-src", "rustfmt"]
targets = [ "x86_64-unknown-linux-musl" ]
2 changes: 1 addition & 1 deletion src/config/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod appconfig;
pub mod cmd;
pub mod lastline_cmd;
pub mod appconfig;

0 comments on commit 76304e9

Please sign in to comment.