Skip to content

Fix diagnostics; set up CI which includes make run and cargo clippy #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 282 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
fb1c30d
support some syscall
yfblock Apr 15, 2023
8d6ea65
finish some testsuits
yfblock Apr 15, 2023
3edf576
finish pipe and fstat
yfblock Apr 15, 2023
6aa744d
finish some syscall and testcase
yfblock Apr 16, 2023
9e857c5
make sys_read async
yfblock Apr 16, 2023
c4e5073
support execve
yfblock Apr 17, 2023
dd764e5
finish mount
yfblock Apr 17, 2023
46e19d6
finish all testcases
yfblock Apr 17, 2023
4111f9b
adjust for comp
yfblock Apr 17, 2023
0767c55
skip step1
yfblock Apr 18, 2023
83b05a5
add step examples
yfblock Apr 20, 2023
ba415e2
update syscall to support libc
yfblock Apr 21, 2023
cb72395
add busybox as teststep3
yfblock Apr 22, 2023
a207554
add syscall utimesat
yfblock Apr 23, 2023
e6a150c
finish syscall futimens
yfblock Apr 23, 2023
136fdac
add simple signal frame
yfblock Apr 24, 2023
c9ddc2b
add pthread simple support
yfblock Apr 25, 2023
d45038f
support busybox sh
yfblock Apr 26, 2023
ecc298d
finish SYSCALL futex
yfblock Apr 26, 2023
96088cb
support dlopen
yfblock Apr 26, 2023
8b1b12e
support link
yfblock Apr 28, 2023
eaa7886
add ruststd testcase
yfblock Apr 29, 2023
3b3fd01
add support for rust std fs
yfblock May 2, 2023
1507d81
improve futex lock
yfblock May 2, 2023
852e033
add signal
yfblock May 2, 2023
3963556
finish simple signal
yfblock May 3, 2023
f81c4f6
fmt code
yfblock May 3, 2023
633ff55
add sendfile
yfblock May 3, 2023
b523e81
Merge remote-tracking branch 'origin/main'
yfblock May 3, 2023
8988db6
finish all tasks
yfblock May 3, 2023
8a4b82a
finish libc test except socket
yfblock May 3, 2023
c3008da
add benchmark
yfblock May 3, 2023
c158842
recycle resouce when exiting
yfblock May 4, 2023
f8e93db
add bash and simple pselect
yfblock May 4, 2023
94c7587
support sqlite
yfblock May 4, 2023
79835fe
add lmben
yfblock May 4, 2023
351045c
improve syscall
yfblock May 5, 2023
d5d6599
support lmbench
yfblock May 5, 2023
9a1569f
add support for nvme
yfblock May 5, 2023
2fe1ffa
pass partial lmbench testcases
yfblock May 5, 2023
9399e82
support bash
yfblock May 6, 2023
cae3b51
add support for bash autosuggestion
yfblock May 6, 2023
85a80fc
support sqlite
yfblock May 6, 2023
22cbc66
adjust syscall
yfblock May 8, 2023
74c413b
support k210
yfblock May 14, 2023
2c2f6e1
fix kernel
yfblock May 14, 2023
c6cadd8
fix some bug
yfblock May 14, 2023
242e105
fix some date
yfblock May 14, 2023
7afde38
run busybox sh on k210
yfblock May 14, 2023
754e1af
add board support
yfblock May 14, 2023
91a82e9
add socket support
yfblock May 19, 2023
d642e7d
optimize performance
yfblock May 29, 2023
06c3078
change address interface
yfblock Jun 2, 2023
6a94f61
optimize file interface
yfblock Jun 2, 2023
f44b789
split pcb and tcb
yfblock Jun 4, 2023
143add0
optimize code
yfblock Jun 12, 2023
9bd31c5
optimize source code.
yfblock Jun 12, 2023
ee8510f
realize cow(Copy On Write)
yfblock Jun 14, 2023
68d647a
init final-2023
yfblock Jun 19, 2023
8242168
fix cow and context_ptr for rwlock
yfblock Jun 19, 2023
792788f
AddTesting
yfblock Jun 26, 2023
25d1e51
test for iozone fat32
yfblock Jun 29, 2023
0c0c3f4
create tmp home dir to test iozone
yfblock Jun 29, 2023
22a40b6
shm
yfblock Jun 30, 2023
16ec331
finish iozone mem
yfblock Jun 30, 2023
980b743
finish some unixbench
yfblock Jun 30, 2023
1dd0bf5
fix some code
yfblock Jun 30, 2023
7767a8d
wait who hang
yfblock Jul 1, 2023
5ecf139
optimize code
yfblock Jul 1, 2023
6ec5c45
finish unixbench
yfblock Jul 1, 2023
0f38f3c
fix some socket
yfblock Jul 1, 2023
bd83885
new_net_stack
yfblock Jul 8, 2023
78fca23
fix net stack
yfblock Jul 8, 2023
b67405b
use new udp socket and its related syscall
yfblock Jul 8, 2023
0e970f0
fix socket
yfblock Jul 9, 2023
795d04a
support net
yfblock Jul 10, 2023
9f31cfc
support netperf
yfblock Jul 11, 2023
ec4935c
pass most case of the netperf
yfblock Jul 12, 2023
e03f310
finish most of the testcases. except iperf and cyc
yfblock Jul 14, 2023
fb02058
finish net part
yfblock Jul 15, 2023
5441133
finish all tasks
yfblock Jul 16, 2023
4288d9a
change netstack to git
yfblock Jul 16, 2023
a9a8b58
finish all testcases
yfblock Jul 17, 2023
29ffcef
finish tasks
yfblock Jul 31, 2023
6338d31
add doc
yfblock Aug 10, 2023
aeb2e51
change skelton
yfblock Aug 10, 2023
49eda2a
add redis support
yfblock Aug 13, 2023
fc84060
add cache task template
yfblock Aug 14, 2023
fcc26af
support task cache template
yfblock Aug 14, 2023
ab48e12
update filesystem
yfblock Aug 15, 2023
5c26895
support gcc
yfblock Aug 17, 2023
add5697
optime for memory trick
yfblock Aug 18, 2023
b1ec625
optime some code
yfblock Aug 19, 2023
36edb41
optime for file tree
yfblock Aug 19, 2023
731e0d4
support step1
yfblock Aug 19, 2023
9fa66b6
support copy_file_range
yfblock Aug 20, 2023
12a2a5b
readable tty
yfblock Aug 20, 2023
d29c858
fix truncate error
yfblock Aug 20, 2023
10f4526
support some testcase on-site
yfblock Aug 20, 2023
7c787ea
pass all
yfblock Aug 20, 2023
78e3d7b
hidden log
yfblock Aug 20, 2023
457f498
fix hwclock ioctl
yfblock Aug 20, 2023
b89ad87
add cargo file
yfblock Aug 20, 2023
f0e5e3b
add docuents
yfblock Aug 20, 2023
ed8f99e
性能优化
yfblock Aug 20, 2023
1cfd220
add go program support
yfblock Sep 8, 2023
a0cd53b
improve README
yfblock Sep 8, 2023
bc28758
remove extra code
yfblock Sep 8, 2023
c0f962b
improve document
yfblock Sep 8, 2023
54b2f5a
improve document
yfblock Sep 8, 2023
3cd29c9
add slide
yfblock Sep 20, 2023
3e26850
ppt修改
yfblock Sep 23, 2023
e9ef453
update device driver macros
yfblock Oct 5, 2023
b067549
optimize device driver frame, fix some warning
yfblock Oct 7, 2023
64b1a76
optimize device frame and update uart driver
yfblock Oct 8, 2023
0a005c5
Update README.md
yfblock Oct 8, 2023
c0e689a
Merge pull request #1 from yfblock/yfblock-patch-1
yfblock Oct 8, 2023
dc52c11
optimize device frame
yfblock Oct 9, 2023
a3dfdc0
support rust config
yfblock Oct 10, 2023
0c70c8c
ready to support x86_64
yfblock Feb 3, 2024
f184cd8
try to use module design
yfblock Feb 3, 2024
206df82
try to add x86_64 support
yfblock Feb 4, 2024
e172a6b
try to support x86_64
yfblock Feb 6, 2024
7c0aa5f
temp submit
yfblock Feb 18, 2024
71b80ca
submit temp
yfblock Feb 18, 2024
25712bd
temp submit
yfblock Feb 19, 2024
949be20
temp submit
yfblock Feb 19, 2024
daee0c3
optimize some code
yfblock Feb 19, 2024
3375a74
fix kernel structure
yfblock Feb 19, 2024
553fc20
fix MemTypePTE
yfblock Feb 20, 2024
c674ad8
optimize some code
yfblock Feb 21, 2024
ad83c8a
temp submit x86_64
yfblock Feb 21, 2024
9c7691c
optimize some code
yfblock Feb 21, 2024
61ef327
support x86_64 page_table
yfblock Feb 21, 2024
f3ebc9a
try to add percpu
yfblock Feb 22, 2024
b5b0821
optimize for kernel
yfblock Feb 23, 2024
9b79d55
fix virt to phys
yfblock Feb 23, 2024
296d7ba
add x86_64 testcase
yfblock Feb 28, 2024
7652ab0
support aarch64
yfblock Mar 4, 2024
90304c0
fmt some code
yfblock Mar 4, 2024
4fd165f
support aarch64
yfblock Mar 5, 2024
fb459ca
try to support x86_64 user apps
yfblock Mar 6, 2024
29957da
try to support loongarch64
yfblock Mar 6, 2024
fc9322d
try to support loongarch64
yfblock Mar 7, 2024
ebcefce
modify testcases
yfblock Mar 8, 2024
cfbf990
optimize for x86_64 support
yfblock Mar 8, 2024
7d48292
optimize riscv support
yfblock Mar 9, 2024
acf204a
add support for x86_64
yfblock Mar 12, 2024
285fcc5
try to add aarch64 support, but stuck in timer
yfblock Mar 13, 2024
beea1e1
support x86_64
yfblock Mar 13, 2024
10872bd
try to support x86_64
yfblock Mar 13, 2024
d8161b1
fix net and cyclictest for x86_64
yfblock Mar 14, 2024
bd3cd31
optimize arch support
yfblock Mar 14, 2024
07bbb82
fix some context
yfblock Mar 15, 2024
aceb448
fix flush tlb for aarch64
yfblock Mar 16, 2024
29e1f0d
fix some error for aarch64
yfblock Mar 16, 2024
59b5ea0
fix some code and loongarch64
yfblock Mar 17, 2024
f7b688a
try to fix some code, add loongarch64 bios
yfblock Mar 20, 2024
173911b
try to add loongarch64 support
yfblock Mar 21, 2024
f031011
try to support loongarch64
yfblock Mar 21, 2024
d6560b5
fix for loongarch64
yfblock Mar 21, 2024
6577559
fix some code
yfblock Mar 22, 2024
12a7c52
fix some code for loongarch
yfblock Mar 22, 2024
7d73698
fix code for loongarch64, pass libctest
yfblock Mar 22, 2024
358ad7a
fix small error
yfblock Mar 22, 2024
3ec8b13
add support for libc-bench
yfblock Mar 22, 2024
74ddd0f
fix some code
yfblock Mar 23, 2024
93ecece
add syscall and fix testcase
yfblock Mar 23, 2024
f044362
fix cyclictest for loongarch64
yfblock Mar 23, 2024
c2ae46c
optimize vfs getdents
yfblock Mar 23, 2024
5854cbc
try to optimize some code
yfblock Mar 24, 2024
0bdfaa3
split crates from this repo
yfblock Mar 24, 2024
a3dca97
use new arch design
yfblock Apr 2, 2024
d96dab3
optimize code and split arch crate
yfblock Apr 4, 2024
19306bf
use new arch interface
yfblock Apr 7, 2024
7ff8af0
update for new arch design
yfblock Apr 8, 2024
655eef3
using new arch time design
yfblock Apr 8, 2024
f2e7cf3
fix sys_ioctl: return ENOTTY if the target don't have ioctl
yfblock Apr 11, 2024
9e632a2
Runable
yfblock Apr 15, 2024
7c0b028
feat: Using cargo-byteos to build
yfblock Apr 15, 2024
989132f
fix: optimize project source tree
yfblock Apr 16, 2024
dab03db
delete kheader
yfblock Apr 16, 2024
55aa3fc
fix: optimize dep source code
yfblock Apr 16, 2024
411f10a
inport arch crate through git
yfblock Apr 16, 2024
fd4a9d2
fix: using bit! instead if bit shift
yfblock Apr 17, 2024
fe21c09
feat: seprate signal from kernel
yfblock Apr 17, 2024
9b8c1fe
feat: seperate sync and frame_allocator from kernel
yfblock Apr 17, 2024
9a4a168
fix: optimize hal dep
yfblock Apr 17, 2024
0a0170f
feat: seperate devices from kernel
yfblock Apr 17, 2024
03fc0e8
feat: seperate devices from kernel
yfblock Apr 17, 2024
f1c77ac
feat: seperate logging from kernel
yfblock Apr 17, 2024
38c2287
feat: seperate devfs procfs ramfs
yfblock Apr 17, 2024
ffb4531
fix: fix fs warrning
yfblock Apr 17, 2024
dabd9ff
feat: seperate fs from kernel
yfblock Apr 17, 2024
6359939
feat: seperate drivers from kernel
yfblock Apr 17, 2024
d7badc0
fix: delete unneeded files
yfblock Apr 17, 2024
558410a
change all extra crates to crates folder
yfblock Apr 18, 2024
bf8136d
fix build script
yfblock Apr 18, 2024
3d7d0fc
fix: Cargo dep slimming
yfblock Apr 18, 2024
15569c3
feat: seperate some logic and structure from executor
yfblock Apr 19, 2024
8213aa1
update allcator
yfblock Apr 19, 2024
24b03b4
fix: fix mount module
yfblock Apr 19, 2024
c87464b
seperate ramdisk form kernel
yfblock Apr 19, 2024
9c3d8ee
feat: Seperate exector from kernel
yfblock Apr 19, 2024
2816178
doc: upgrade document,
yfblock Apr 19, 2024
797be47
feat: upgrade arch and using byteos build instead of cargo build
yfblock Apr 21, 2024
08b6246
feat: upgrade async kernel
yfblock Apr 21, 2024
2267882
feat: ready to support multiccore
yfblock Apr 24, 2024
ed76271
feat: add multicore
yfblock Apr 27, 2024
d25558f
feat: support multicore
yfblock Apr 29, 2024
ab1810e
feat: adapt for new cargo-byteos
yfblock Apr 29, 2024
2f36907
fix: rename arch to polyhal
yfblock Apr 30, 2024
b107bc3
feat: adapt for kbuld 0.1.3
yfblock May 1, 2024
8d0ca06
feat: support visionfive2
yfblock May 2, 2024
ebb4f48
Create os_module.json
yfblock May 7, 2024
a77105e
Merge pull request #2 from Byte-OS/yfblock-patch-1
yfblock May 7, 2024
16696dd
Rename os_module.json to README.json
yfblock May 9, 2024
fe410e0
Merge pull request #3 from Byte-OS/yfblock-patch-2
yfblock May 9, 2024
23f441e
feat: use latest polyhal and fmt code
yfblock Jun 4, 2024
7b66a5d
feat: add ext4 support
yfblock Jun 15, 2024
7525ad4
feat: adapt to newer polyhal version
yfblock Jun 16, 2024
73fc87e
feat: support new polyhal
yfblock Aug 3, 2024
14a2de0
feat: support graphic
yfblock Aug 4, 2024
d8b5ec8
feat: trying to use deno as build script.
yfblock Oct 31, 2024
59af83b
feat: upgrade polyhal version and refactor deno scripts
yfblock Nov 1, 2024
b587a6e
cargo clippy --fix --bin "kernel"
zjp-CN Jan 12, 2025
12312c0
cargo fmt
zjp-CN Jan 12, 2025
443dfa3
fix(rust-toolchain): add llvm-tools-preview component
zjp-CN Jan 12, 2025
3dec190
README: install kbuild
zjp-CN Jan 12, 2025
c9311c6
fix(clippy): #[allow(clippy::upper_case_acronyms)]
zjp-CN Jan 12, 2025
ac994b0
fix: for-loop on slice_mut_with_len value
zjp-CN Jan 12, 2025
2b39534
fix: for-loop on slice_mut_with_len value (replace poll_fds[i] by fd)
zjp-CN Jan 12, 2025
e965346
fix(clippy): some minor warnings
zjp-CN Jan 12, 2025
accc0cc
FIXME: 01000 is a decimal constant
zjp-CN Jan 12, 2025
09ac2ec
fix(clippy::search_is_some): replace iter.find() with iter.any()
zjp-CN Jan 12, 2025
b6aab7a
FIXME: parameter is only used in recursion
zjp-CN Jan 12, 2025
c97c2e6
fix(clippy::non_minimal_cfg): unneeded sub `cfg` when there is only o…
zjp-CN Jan 12, 2025
95beb85
fix(clippy): minor warnings
zjp-CN Jan 12, 2025
971d463
feat(ci): make run for riscv64, aarch64, x86_64, loongarch64
zjp-CN Jan 12, 2025
66fcc4d
ci: install cargo-binutils outside ByteOS's toolchain
zjp-CN Jan 12, 2025
2dcb0cb
fix(ci): install toolchain
zjp-CN Jan 12, 2025
db79df8
ci: make --version
zjp-CN Jan 12, 2025
611b789
ci: make run -n
zjp-CN Jan 12, 2025
3bf4728
ci: make BIN=riscv64-qemu ARCH=riscv64 run
zjp-CN Jan 12, 2025
81aee80
ci: rustup default nightly
zjp-CN Jan 12, 2025
66f6bde
ci: cargo -Vv && rustc -Vv
zjp-CN Jan 12, 2025
8a88749
chore: clean up
zjp-CN Jan 12, 2025
378bc98
ci: add clippy check
zjp-CN Jan 12, 2025
d26c47d
ci: stop x86_64 make run for a moment
zjp-CN Jan 12, 2025
57936d3
FIXME: qemu-system-loongarch64: command not found
zjp-CN Jan 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 0 additions & 15 deletions .cargo/config

This file was deleted.

33 changes: 33 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 编译的目标平台
[build]
target = 'riscv64gc-unknown-none-elf'
# target = 'x86_64-unknown-none'
# target = 'aarch64-unknown-none-softfloat'
# target = 'loongarch64-unknown-none'

# This flags also can be set from every target.
rustflags = [
'-Cforce-frame-pointers=yes',
'-Clink-arg=-no-pie',
'--cfg=board="qemu"',
'--cfg=root_fs="fat32"',
'-Zunstable-options',
'-Ztls-model=local-exec',
# '--cfg=driver="kvirtio,kgoldfish-rtc,ns16550a"',
# '--extern=force:kernel'
# '-Zunstable-options',
# '--check-cfg=values(board, "qemu","k210","cv1811h", "knvme", "")',
# '--cfg=kernel_base="0xffffffc080200000"', # riscv64imac-unknown-none-elf
# '--cfg=kernel_base="0xffffff8000200000"', # x86_64-unknown-none
]

[env]
ROOT_MANIFEST_DIR = "../"

[target.riscv64imac-unknown-none-elf]
[target.x86_64-unknown-none]
[target.aarch64-unknown-none-softfloat]
[target.loongarch64-unknown-none]

[unstable]
features = ['dev_dep','host_dep']
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
make-run:
runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# arch: [riscv64, aarch64, x86_64, loongarch64]
steps:
- name: Install qemu-system
run: sudo apt update && sudo apt install qemu-system -y
- name: Install cargo-binutils
run: cargo install cargo-binutils
- name: Install kbuild
run: cargo install kbuild

- uses: actions/checkout@v4
- name: Install toolchain
run: rustup show && cargo -Vv && rustc -Vv
- run: rustup default nightly && cargo -Vv && rustc -Vv

- name: "[riscv64] make run"
run: make BIN=riscv64-qemu run
- name: "[aarch64] make run"
run: make BIN=aarch64-qemu run
# It takes 20 minutes to succeed.
# - name: "[x86_64] make run"
# run: make BIN=x86_64-qemu run
# FIXME: qemu-system-loongarch64: command not found
- name: "[loongarch64] make run"
run: make BIN=loongarch64-qemu run

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# FIXME: Could not find incbin file '../mount.img'
# - name: build
# run: cargo build

- uses: taiki-e/install-action@cargo-hack
- run: cargo hack clippy --each-feature
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
target/
target/
mount.img
mount/
sbi-qemu
kernel-qemu
byteos.bin
.cargo/linker-riscv.ld
packets.pcap
.gdb_history
kernel/*.lds
qemu.log
kernel/src/drivers.rs
graph.png
tools/iso/example
48 changes: 48 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "gdb",
"request": "attach",
"name": "Attach to Qemu",
"executable": "${userHome}/Code/ByteOS/target/riscv64imac-unknown-none-elf/debug/kernel",
"target": ":1234",//不能和Qemu开放的tcp端口重叠
"remote": true,
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText",
"gdbpath": "gdb-multiarch",
"preLaunchTask": "Build",
"showDevDebugOutput":true,
"internalConsoleOptions": "openOnSessionStart",
"printCalls": true,
"stopAtConnect": true,
"qemuPath": "qemu-system-riscv64",
"qemuArgs": [
"-machine",
"virt",
"-kernel",
"target/riscv64imac-unknown-none-elf/debug/kernel",
"-m",
"128M",
"-bios",
"tools/opensbi-qemu.bin",
"-nographic",
"-smp",
"1",
"-drive",
"file=mount.img,if=none,format=raw,id=x0",
"-device",
"virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0",
"-s",
"-S"
],
"userSpaceDebuggeeFolder":"/home/yufeng/Code/Starry/testcases/sdcard",
"KERNEL_IN_BREAKPOINTS_LINE":14, // src/trap/mod.rs中内核入口行号。可能要修改
"KERNEL_OUT_BREAKPOINTS_LINE":750, // src/trap/mod.rs中内核出口行号。可能要修改
"GO_TO_KERNEL_LINE":30, // src/trap/mod.rs中,用于从用户态返回内核的断点行号。在rCore-Tutorial-v3中,这是set_user_trap_entry函数中的stvec::write(TRAMPOLINE as usize, TrapMode::Direct);语句。
"KERNEL_IN_BREAKPOINTS_FILENAME":"/home/yufeng/Code/Starry/modules/axhal/src/arch/x86_64/trap.rs",
"KERNEL_OUT_BREAKPOINTS_FILENAME":"/home/yufeng/Code/Starry/modules/axtask/src/task.rs",
"GO_TO_KERNEL_FILENAME":"src/trap/mod.rs"
},
]
}
9 changes: 4 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": [
"--target",
"riscv64gc-unknown-none-elf"
]
"rust-analyzer.check.allTargets": false,
"rust-analyzer.check.extraArgs": [],
"rust-analyzer.procMacro.enable": true,
"deno.enable": true
}
22 changes: 22 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build", // 任务的名字叫Build,注意是大小写区分的,等会在launch中调用这个名字
"type": "shell", // 任务执行的是shell命令,也可以是
"command": "make",
"args": [
"LOG=debug",
// "RELEASE=debug",
"justbuild"
],
"group": {
"kind": "build",
"isDefault": true
// 任务分组,因为是tasks而不是task,意味着可以连着执行很多任务
// 在build组的任务们,可以通过在Command Palette(F1) 输入run build task来运行
// 当然,如果任务分组是test,你就可以用run test task来运行
},
}
]
}
Loading