Daily Test of NuttX for Ox64 #367
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
## Test Mainline NuttX every day for Ox64 | |
name: Daily Test of NuttX for Ox64 | |
permissions: | |
## Allow publishing of GitHub Release | |
contents: write | |
on: | |
## Run every day at 0:55 UTC | |
schedule: | |
- cron: '55 0 * * *' | |
## Run on every commit to this branch | |
## push: | |
## branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Current Date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Install Build Tools | |
run: | | |
sudo apt -y update | |
sudo apt -y install \ | |
expect libcurl4-openssl-dev libssl-dev zlib1g-dev libsdl2-dev wget | |
- name: Checkout Source Files | |
run: | | |
git clone https://github.com/lupyuen/ox64-tinyemu | |
- name: Build Ox64 BL808 Emulator | |
run: | | |
cd ox64-tinyemu | |
make | |
cp temu .. | |
- name: Download NuttX Build and Test Script | |
run: | | |
wget https://github.com/lupyuen/nuttx-ox64/releases/download/nuttx-ox64-${{ steps.date.outputs.date }}/Image | |
wget https://github.com/lupyuen/nuttx-ox64/releases/download/nuttx-ox64-${{ steps.date.outputs.date }}/nuttx.hash | |
wget https://github.com/lupyuen/nuttx-ox64/raw/main/nuttx.cfg | |
wget https://github.com/lupyuen/nuttx-ox64/raw/main/nuttx.exp | |
chmod +x nuttx.exp | |
ls -l | |
cat nuttx.hash | |
- name: Run Test | |
run: | | |
./nuttx.exp |