-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into RPi-4B-BCM2711
- Loading branch information
Showing
22 changed files
with
780 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[flake8] | ||
|
||
ignore = | ||
# These are needed to make our license headers pass the linting | ||
E265, | ||
E266, | ||
|
||
# 10% larger than the standard 80 character limit. Conforms to the black | ||
# standard and Bugbear's B950. | ||
max-line-length = 88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build NuttX Examples | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
schedule: | ||
# Build on Mondays at 9am PST every week | ||
- cron: '0 17 * * 1' | ||
|
||
jobs: | ||
build-nuttx: | ||
runs-on: ubuntu-24.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
example: [nuttx-riscv-blink] | ||
swift: [swift-DEVELOPMENT-SNAPSHOT-2024-12-22-a] | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install apt dependencies | ||
run: | | ||
sudo apt-get -qq update && sudo apt-get -qq -y install \ | ||
bison flex gettext texinfo libncurses5-dev libncursesw5-dev \ | ||
gperf automake libtool pkg-config build-essential gperf genromfs \ | ||
libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \ | ||
libexpat-dev gcc-multilib g++-multilib u-boot-tools util-linux \ | ||
kconfig-frontends ninja-build | ||
- name: Install CMake 3.30.2 | ||
run: | | ||
ARCH=`uname -m` | ||
curl -sL https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-$ARCH.tar.gz -O | ||
tar xzf cmake-3.30.2-linux-$ARCH.tar.gz | ||
export PATH="`pwd`/cmake-3.30.2-linux-$ARCH/bin:$PATH" | ||
echo "PATH=$PATH" >> $GITHUB_ENV | ||
cmake --version | ||
- name: Install RISC-V toolchain | ||
run: | | ||
mkdir -p riscv-none-elf-gcc && \ | ||
curl -s -L "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz" \ | ||
| tar -C riscv-none-elf-gcc --strip-components 1 -xz | ||
export PATH="$PATH:`pwd`/riscv-none-elf-gcc/bin/" | ||
echo "PATH=$PATH" >> $GITHUB_ENV | ||
riscv-none-elf-gcc --version | ||
- name: Install ${{ matrix.swift }} | ||
run: | | ||
wget -q https://download.swift.org/development/ubuntu2404/${{ matrix.swift }}/${{ matrix.swift }}-ubuntu24.04.tar.gz | ||
tar xzf ${{ matrix.swift }}-ubuntu24.04.tar.gz | ||
export PATH="`pwd`/${{ matrix.swift }}-ubuntu24.04/usr/bin/:$PATH" | ||
echo "PATH=$PATH" >> $GITHUB_ENV | ||
swiftc --version | ||
- name: Config ${{ matrix.example }} | ||
working-directory: ${{ matrix.example }} | ||
run: cmake -B build -GNinja -DBOARD_CONFIG=rv-virt:leds_swift -DENABLE_NUTTX_TRACE=ON | ||
|
||
- name: Build ${{ matrix.example }} | ||
working-directory: ${{ matrix.example }} | ||
run: cmake --build build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.