Skip to content

Commit 82ecc5f

Browse files
committed
修改路径
1 parent 6e57998 commit 82ecc5f

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

.github/workflows/docker-image.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
name: Docker Run Action Tests
1+
name: C/C++ CI
22

33
on:
44
push:
5-
branches:
6-
- maikebing-patch-1
7-
pull_request:
5+
branches: [ "maikebing-patch-1" ]
6+
87

98
jobs:
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+

entrypoint.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ if [ ! -d ~/.env ]; then
44
fi
55
export PATH=$PATH:~/.env/tools/scripts
66
sed -i -e 's/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=y/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=n/g' /env/tools/scripts/cmds/.config
7-
7+
pwd
88
if [ -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

0 commit comments

Comments
 (0)