Skip to content

update esptool version and switch Wget to cURL tool #10

update esptool version and switch Wget to cURL tool

update esptool version and switch Wget to cURL tool #10

Workflow file for this run

name: Nuttx-arm64 QEMU
permissions:
## Allow publishing of GitHub Release
contents: write
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/nuttx_arm64.yml'
jobs:
nuttx-arm64:
runs-on: windows-latest
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: |
echo 'pip3 install'
uname
python3 -m venv --system-site-packages /usr/local
pip3 install --root-user-action=ignore --no-cache-dir pyelftools cxxfilt kconfiglib
- name: Checkout Source Files
run: |
echo 'Checkout Source Files'
mkdir nuttxspace
ls -a
cd nuttxspace
## git clone https://github.com/apache/incubator-nuttx nuttx
## git clone https://github.com/apache/incubator-nuttx-apps apps
git clone --single-branch --branch simbit18-20240306 https://github.com/simbit18/nuttx.git nuttx
git clone --single-branch --branch simbit18-20240306 https://github.com/simbit18/nuttx-apps.git apps
## curl -L https://www.apache.org/dyn/closer.lua/nuttx/12.0.0/apache-nuttx-12.0.0.tar.gz?action=download -o nuttx.tar.gz
## curl -L https://www.apache.org/dyn/closer.lua/nuttx/12.0.0/apache-nuttx-apps-12.0.0.tar.gz?action=download -o apps.tar.gz
## tar zxf nuttx.tar.gz --one-top-level=nuttx --strip-components 1
## tar zxf apps.tar.gz --one-top-level=apps --strip-components 1
## ls -a
## cd nuttx
ls -a
echo 'Copy tools'
cp -f ../tools/arm64/install_tools_arm64.sh install_tools_arm64.sh
ls -a
./install_tools_arm64.sh
- name: Build
run: |
echo 'Build'
source ./nuttxspace/tools/env.sh
## Move to nuttx
cd nuttxspace/nuttx
ls -a
## Show the aarch64-none-elf-gcc version
aarch64-none-elf-gcc --version
## Configure the build
./tools/configure.sh -g qemu-armv8a:nsh_smp
mkdir nuttxarm64
## Preserve the build config
cp .config nuttxarm64/nuttx.config
make -j4
ls -a
cp nuttx nuttxarm64/nuttx
cp .config nuttxarm64/.config
cp defconfig nuttxarm64/defconfig
cp System.map nuttxarm64/System.map
zip -r nuttxarm64.zip nuttxarm64
- name: Get Current Date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Publish the GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: nuttx-arm64-qemu-${{ steps.date.outputs.date }}
draft: false
prerelease: false
generate_release_notes: false
files: |
nuttxspace/nuttx/nuttxarm64.zip