Skip to content

Commit acf9ff9

Browse files
committed
修改
1 parent fa20ab7 commit acf9ff9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ RUN git clone https://git.code.sf.net/p/stm32flash/code stm32flash-code && \
2121
RUN git clone https://github.com/RT-Thread/env.git /env/tools/scripts && \
2222
git clone https://github.com/RT-Thread/packages.git /env/packages/packages
2323
COPY entrypoint.sh /entrypoint.sh
24-
ENTRYPOINT ["/bin/bash","/entrypoint.sh"]
24+
COPY entrypoint.sh /entrypoint.sh
25+
RUN chmod +x /entrypoint.sh
26+
ENTRYPOINT ["/entrypoint.sh"]

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ branding:
66
icon: 'box'
77
color: 'blue'
88
inputs:
9-
target:
9+
TARGET:
1010
description: 'scons -target=?'
1111
default: mdk5
1212
required: true
13-
std:
13+
STD:
1414
default: c99
1515
required: true
1616
description: 'cppcheck std'

entrypoint.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
#!/usr/bin/env bash
1+
#!/bin/sh
22
if [ ! -d ~/.env ]; then ln /env ~/.env -s;fi
33
export PATH=$PATH:~/.env/tools/scripts
44
sed -i -e 's/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=y/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=n/g' /env/tools/scripts/cmds/.config
5-
TARGET=$1
6-
STD=$2
75
pkgs --printenv
86
pkgs --list
97
pkgs --update
10-
cppcheck --enable=all --std=$STD applications/
11-
scons --target=$TARGET
8+
cppcheck --enable=all --std=${STD} applications/
9+
scons --target=${TARGET}

0 commit comments

Comments
 (0)