nightly #140
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
name: nightly | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
env: | |
TARGET_ARCH: linux64 | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
name: Build AVP64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Download software | |
working-directory: ./sw | |
run: | | |
wget https://github.com/aut0/avp64_sw/releases/download/v2024.08.02/buildroot_6_5_6.tar.gz | |
tar -xvf buildroot_6_5_6.tar.gz | |
rm buildroot_6_5_6.tar.gz | |
- name: Setup Dependencies | |
run: | | |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" | |
sudo apt-get update -y -qq | |
sudo apt-get install build-essential libelf-dev libsdl2-dev libvncserver-dev libslirp-dev | |
- name: Configure | |
run: | | |
cmake \ | |
-B ${{github.workspace}}/build \ | |
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-DAVP64_BUILD_TESTS=ON \ | |
-DAVP64_BUILD_RUNNER=ON | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j $(nproc) | |
- name: Test | |
env: | |
LD_LIBRARY_PATH: ${{github.workspace}}/build/ocx-qemu-arm | |
working-directory: ${{github.workspace}}/build | |
run: | | |
ctest -C ${{env.BUILD_TYPE}} --output-on-failure --output-junit testreport.xml | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: always() | |
with: | |
report_paths: ${{github.workspace}}/build/testreport.xml |