Skip to content

Commit

Permalink
attempt to match other build ymls
Browse files Browse the repository at this point in the history
  • Loading branch information
rauhul committed Jan 3, 2025
1 parent 75a8c65 commit 018b662
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/build-nuttx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,23 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up CMake + Ninja
uses: lukka/get-cmake@latest
with:
cmakeVersion: latest
ninjaVersion: latest

- name: Install ${{ matrix.swift }} and remove old version
- name: Install apt dependencies
run: |
sudo rm /usr/local/bin/swift*
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="$PATH:`pwd`/${{ matrix.swift }}-ubuntu24.04/usr/bin/"
echo "PATH=$PATH" >> $GITHUB_ENV
swiftc --version
- name: Install Build tools
run: |
sudo apt -y update
sudo apt -y install \
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
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: |
Expand All @@ -57,6 +50,15 @@ jobs:
echo "PATH=$PATH" >> $GITHUB_ENV
riscv-none-elf-gcc --version
- name: Install ${{ matrix.swift }} and remove old version
run: |
sudo rm /usr/local/bin/swift*
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="$PATH:`pwd`/${{ matrix.swift }}-ubuntu24.04/usr/bin/"
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
Expand Down

0 comments on commit 018b662

Please sign in to comment.