Skip to content

Commit e564816

Browse files
raiden00pllupyuen
authored andcommitted
.github: install NTFC from PIP
install NTFC package from PIP Signed-off-by: raiden00pl <raiden00@railab.me>
1 parent f3a7282 commit e564816

1 file changed

Lines changed: 5 additions & 21 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -175,42 +175,26 @@ jobs:
175175
- name: Export NuttX Repo SHA
176176
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
177177

178-
- name: Install NTFC
178+
- name: Run builds
179179
uses: ./sources/nuttx/.github/actions/ci-container
180180
env:
181181
BLOBDIR: /tools/blobs
182182
with:
183183
run: |
184-
# install python venv
185-
apt-get update
186-
apt-get install -y python3 python3-dev python3-venv
187-
188-
# get NTFC sources
189-
git clone -b release-0.0.1 https://github.com/szafonimateusz-mi/nuttx-ntfc
184+
pip install ntfc==0.0.1
185+
mkdir /github/workspace/nuttx-ntfc
186+
mkdir /github/workspace/nuttx-ntfc/external
190187
cd /github/workspace/nuttx-ntfc
191-
192-
# install NTFC with venv
193-
python3 -m venv /github/workspace/nuttx-ntfc/venv
194-
source /github/workspace/nuttx-ntfc/venv/bin/activate
195-
pip3 install .
196-
deactivate
197-
198188
# get NTFC test cases
199189
cd external
200190
git clone -b release-0.0.1 https://github.com/szafonimateusz-mi/nuttx-testing
201191
202-
- name: Run builds
203-
uses: ./sources/nuttx/.github/actions/ci-container
204-
env:
205-
BLOBDIR: /tools/blobs
206-
with:
207-
run: |
208192
echo "::add-matcher::sources/nuttx/.github/gcc.json"
209193
export ARTIFACTDIR=`pwd`/buildartifacts
210194
export NTFCDIR=/github/workspace/nuttx-ntfc
211195
git config --global --add safe.directory /github/workspace/sources/nuttx
212196
git config --global --add safe.directory /github/workspace/sources/apps
213-
cd sources/nuttx/tools/ci
197+
cd /github/workspace/sources/nuttx/tools/ci
214198
if [ "X${{matrix.boards}}" = "Xcodechecker" ]; then
215199
./cibuild.sh -c -A -N -R --codechecker testlist/${{matrix.boards}}.dat
216200
else

0 commit comments

Comments
 (0)