Skip to content

Commit

Permalink
benchmarks/rt-tests: Add CONFIG_PIPE dependency and fix compilation i…
Browse files Browse the repository at this point in the history
…ssues.

Change-Id: I5d793f8fa4dda0a809db3ce1415528567d89aa30
  • Loading branch information
Fix-Point authored and openvela-robot committed Nov 20, 2024
1 parent c31c335 commit e4cb10d
Show file tree
Hide file tree
Showing 1,148 changed files with 103,083 additions and 36,244 deletions.
99 changes: 15 additions & 84 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
REF=$GITHUB_REF
# If a base ref is set this is a PR and we will want to use
# the base ref instead of the ref that triggered the event.
# the base ref instead of the ref that triggered the event
if [ ${GITHUB_BASE_REF} ]; then
REF=refs/heads/$GITHUB_BASE_REF
fi
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
run: tar zcf sources.tar.gz sources

- name: Archive Source Bundle
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: source-bundle
path: sources.tar.gz
Expand All @@ -118,11 +118,11 @@ jobs:

strategy:
matrix:
boards: [arm-01, arm-02, arm-03, arm-04, arm-05, arm-06, arm-07, arm-08, arm-09, arm-10, arm-11, arm-12, arm-13, other, risc-v-01, risc-v-02, sim-01, sim-02, xtensa-01, xtensa-02]
boards: [arm-01, arm-02, arm-03, arm-04, arm-05, arm-06, arm-07, arm-08, arm-09, arm-10, arm-11, arm-12, arm-13, other, risc-v, sim-01, sim-02, xtensa, codechecker]

steps:
- name: Download Source Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: source-bundle
path: .
Expand Down Expand Up @@ -155,29 +155,29 @@ jobs:
git config --global --add safe.directory /github/workspace/sources/apps
cd sources/nuttx/tools/ci
if [ "X${{matrix.boards}}" = "Xcodechecker" ]; then
./cibuild.sh -c -A -N -R --codechecker testlist/${{matrix.boards}}.dat
./cibuild.sh -c -A -R --codechecker testlist/${{matrix.boards}}.dat
else
./cibuild.sh -c -A -N -R testlist/${{matrix.boards}}.dat
./cibuild.sh -c -A -R testlist/${{matrix.boards}}.dat
fi
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: linux-${{matrix.boards}}-builds
name: linux-builds
path: buildartifacts/
continue-on-error: true

macOS:
permissions:
contents: none
runs-on: macos-13
runs-on: macos-12
needs: Fetch-Source
strategy:
matrix:
boards: [macos, sim-01, sim-02]
steps:
- name: Download Source Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: source-bundle
path: .
Expand All @@ -187,19 +187,19 @@ jobs:

- name: Restore Tools Cache
id: cache-tools
uses: actions/cache@v4
uses: actions/cache@v3
env:
cache-name: ${{ runner.os }}-cache-tools
with:
path: ./sources/tools
key: ${{ runner.os }}-tools-${{ hashFiles('./sources/nuttx/tools/ci/platforms/darwin.sh') }}
key: ${{ runner.os }}-tools-${{ hashFiles('./sources/nuttx/tools/ci/cibuild.sh') }}

- name: Export NuttX Repo SHA
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV

# Released version of Cython has issues with Python 11. Set runner to use Python 3.10
# https://github.com/cython/cython/issues/4500
- uses: actions/setup-python@v5
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run Builds
Expand All @@ -209,77 +209,8 @@ jobs:
cd sources/nuttx/tools/ci
./cibuild.sh -i -c -A -R testlist/${{matrix.boards}}.dat
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: macos-${{matrix.boards}}-builds
path: buildartifacts/
continue-on-error: true

msys2:
needs: Fetch-Source
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
boards: [msys2]

defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: false
install: >-
base-devel
gcc
gperf
automake
autoconf
git
python3
ncurses-devel
unzip
zip
tio
zlib-devel
cmake
ninja
python-pip
vim
- name: pip3 install
run: |
python3 -m venv --system-site-packages /usr/local
pip3 install --root-user-action=ignore --no-cache-dir pyelftools cxxfilt kconfiglib
- run: git config --global core.autocrlf false

- name: Download Source Artifact
uses: actions/download-artifact@v4
with:
name: source-bundle
path: .

- name: Extract sources
run: tar zxf sources.tar.gz

- name: Export NuttX Repo SHA
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV

- name: Run Builds
run: |
echo "::add-matcher::sources/nuttx/.github/gcc.json"
export ARTIFACTDIR=`pwd`/buildartifacts
git config --global --add safe.directory /github/workspace/sources/nuttx
git config --global --add safe.directory /github/workspace/sources/apps
cd sources/nuttx/tools/ci
./cibuild.sh -g -i -A -C -R testlist/${{matrix.boards}}.dat
- uses: actions/upload-artifact@v4
with:
name: msys2-${{matrix.boards}}-builds
name: macos-builds
path: buildartifacts/
continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0
- run: mkdir super-linter.report
- name: Lint
uses: github/super-linter@v7
uses: github/super-linter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
Expand Down
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
*.a
*.dbo
*.dba
*.adb
*.asm
*.d
*.dSYM
*.exe
*.gcno
Expand All @@ -23,7 +26,7 @@
.context
.depend
.kconfig
*.lock
/*.lock
/bin
/boot_romfsimg.h
/external
Expand All @@ -39,7 +42,3 @@ Make.dep
.dirlinks
.vscode
.DS_Store
build
.ccls-cache
compile_commands.json
.aider*
Loading

0 comments on commit e4cb10d

Please sign in to comment.