File tree Expand file tree Collapse file tree 2 files changed +17
-20
lines changed
Expand file tree Collapse file tree 2 files changed +17
-20
lines changed Original file line number Diff line number Diff line change 1- name : Docker Run Action Tests
1+ name : C/C++ CI
22
33on :
44 push :
5- branches :
6- - maikebing-patch-1
7- pull_request :
5+ branches : [ "maikebing-patch-1" ]
6+
87
98jobs :
10- volume-mount-test :
9+ build :
1110 runs-on : ubuntu-latest
1211 steps :
13- - uses : actions/checkout@v2
14- - name : pkgs --help
15- uses : ./
16- id : run-docker
17- with :
18- image : maikebing/rt-thread_linux_env
19- options : -v ${{ github.workspace }}:/github/work
20- run : |
21- pkgs --help
12+ - name : scons
13+ uses : actions/checkout@v3
14+ - name : Setup RT-Thread
15+ uses : maikebing/rt-thread_linux_env@maikebing-patch-1
16+ with :
17+ TARGET : ' mdk5'
18+ CPPCHECK : ' --enable=all --std=c99 applications/'
19+
Original file line number Diff line number Diff line change @@ -4,17 +4,16 @@ if [ ! -d ~/.env ]; then
44 fi
55export PATH=$PATH :~ /.env/tools/scripts
66sed -i -e ' s/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=y/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=n/g' /env/tools/scripts/cmds/.config
7-
7+ pwd
88if [ -f SConstruct ]; then
99 pkgs --printenv
10- pkgs --list
10+ pkgs --list
1111 pkgs --update
12- if [[ -z " ${CPPCHECK} " ] ]; then
13- cppcheck ${CPPCHECK}
12+ if [ -z " ${CPPCHECK} " ]; then
13+ cppcheck ${CPPCHECK}
1414 fi
1515
16-
17- if [[ -z " ${TARGET} " ]]; then
16+ if [-z " ${TARGET} " ]; then
1817 scons --target=${TARGET}
1918 else
2019 scons
You can’t perform that action at this time.
0 commit comments