mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
.github: install NTFC from PIP
install NTFC package from PIP Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
@@ -184,42 +184,26 @@ jobs:
|
|||||||
- name: Export NuttX Repo SHA
|
- name: Export NuttX Repo SHA
|
||||||
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
|
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install NTFC
|
|
||||||
uses: ./sources/nuttx/.github/actions/ci-container
|
|
||||||
env:
|
|
||||||
BLOBDIR: /tools/blobs
|
|
||||||
with:
|
|
||||||
run: |
|
|
||||||
# install python venv
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y python3 python3-dev python3-venv
|
|
||||||
|
|
||||||
# get NTFC sources
|
|
||||||
git clone -b release-0.0.1 https://github.com/szafonimateusz-mi/nuttx-ntfc
|
|
||||||
cd /github/workspace/nuttx-ntfc
|
|
||||||
|
|
||||||
# install NTFC with venv
|
|
||||||
python3 -m venv /github/workspace/nuttx-ntfc/venv
|
|
||||||
source /github/workspace/nuttx-ntfc/venv/bin/activate
|
|
||||||
pip3 install .
|
|
||||||
deactivate
|
|
||||||
|
|
||||||
# get NTFC test cases
|
|
||||||
cd external
|
|
||||||
git clone -b release-0.0.1 https://github.com/szafonimateusz-mi/nuttx-testing
|
|
||||||
|
|
||||||
- name: Run builds
|
- name: Run builds
|
||||||
uses: ./sources/nuttx/.github/actions/ci-container
|
uses: ./sources/nuttx/.github/actions/ci-container
|
||||||
env:
|
env:
|
||||||
BLOBDIR: /tools/blobs
|
BLOBDIR: /tools/blobs
|
||||||
with:
|
with:
|
||||||
run: |
|
run: |
|
||||||
|
pip install ntfc==0.0.1
|
||||||
|
mkdir /github/workspace/nuttx-ntfc
|
||||||
|
mkdir /github/workspace/nuttx-ntfc/external
|
||||||
|
cd /github/workspace/nuttx-ntfc
|
||||||
|
# get NTFC test cases
|
||||||
|
cd external
|
||||||
|
git clone -b release-0.0.1 https://github.com/szafonimateusz-mi/nuttx-testing
|
||||||
|
|
||||||
echo "::add-matcher::sources/nuttx/.github/gcc.json"
|
echo "::add-matcher::sources/nuttx/.github/gcc.json"
|
||||||
export ARTIFACTDIR=`pwd`/buildartifacts
|
export ARTIFACTDIR=`pwd`/buildartifacts
|
||||||
export NTFCDIR=/github/workspace/nuttx-ntfc
|
export NTFCDIR=/github/workspace/nuttx-ntfc
|
||||||
git config --global --add safe.directory /github/workspace/sources/nuttx
|
git config --global --add safe.directory /github/workspace/sources/nuttx
|
||||||
git config --global --add safe.directory /github/workspace/sources/apps
|
git config --global --add safe.directory /github/workspace/sources/apps
|
||||||
cd sources/nuttx/tools/ci
|
cd /github/workspace/sources/nuttx/tools/ci
|
||||||
if [ "X${{matrix.boards}}" = "Xcodechecker" ]; then
|
if [ "X${{matrix.boards}}" = "Xcodechecker" ]; then
|
||||||
./cibuild.sh -c -A -N -R --codechecker testlist/${{matrix.boards}}.dat
|
./cibuild.sh -c -A -N -R --codechecker testlist/${{matrix.boards}}.dat
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user