Merge pull request #4182 from Ark74/upd_site_code #652
This file contains hidden or 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: '"40 min" IIAB "UNITTEST" on RasPiOS on Zero 2 W' | |
| # run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 | |
| # https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/ci-cd/github-actions/triggers.html | |
| on: [push, pull_request, workflow_dispatch] | |
| # on: | |
| # push: | |
| # | |
| # pull_request: | |
| # | |
| # # Allows you to run this workflow manually from the Actions tab | |
| # workflow_dispatch: | |
| # | |
| # # Set your workflow to run every day of the week from Monday to Friday at 6:00 UTC | |
| # schedule: | |
| # - cron: "0 6 * * 1-5" | |
| jobs: | |
| test-install: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| arch: [aarch64] #[zero_raspbian, zero_raspios, zero2_raspios, aarch64] | |
| include: | |
| #- arch: zero_raspbian | |
| # cpu: arm1176 | |
| # cpu_info: cpuinfo/raspberrypi_zero_w | |
| # base_image: raspbian_lite:latest | |
| #- arch: zero_raspios | |
| # cpu: arm1176 | |
| # cpu_info: cpuinfo/raspberrypi_zero_w | |
| # base_image: raspios_lite:latest | |
| #- arch: zero2_raspios | |
| # cpu: cortex-a7 | |
| # cpu_info: cpuinfo/raspberrypi_zero2_w | |
| # base_image: raspios_lite:latest | |
| - arch: aarch64 | |
| cpu: cortex-a53 | |
| cpu_info: cpuinfo/raspberrypi_zero2_w_arm64 | |
| base_image: raspios_lite_arm64:latest | |
| steps: | |
| #- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
| #- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
| #- name: Dump GitHub context (typically almost 500 lines) | |
| # env: | |
| # GITHUB_CONTEXT: ${{ toJSON(github) }} | |
| # run: echo "$GITHUB_CONTEXT" | |
| - name: Dump matrix context | |
| env: | |
| MATRIX_CONTEXT: ${{ toJSON(matrix) }} | |
| run: echo "$MATRIX_CONTEXT" | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 # Default is 1, but iiab-summary (below) needs git tag history. | |
| - uses: pguyot/arm-runner-action@v2 | |
| with: | |
| image_additional_mb: 1024 | |
| base_image: ${{ matrix.base_image }} | |
| cpu: ${{ matrix.cpu }} | |
| cpu_info: ${{ matrix.cpu_info }} | |
| copy_repository_path: /opt/iiab/iiab | |
| commands: | | |
| echo "🍏 This job's status is ${{ job.status }}." | |
| #test `uname -m` = ${{ matrix.arch }} | |
| # /proc/cpuinfo not available on ubuntu-24.04 runner, per https://github.com/pguyot/arm-runner-action#cpu_info | |
| # grep Model /proc/cpuinfo | |
| uname -a # uname -srm | |
| whoami # Typically 'root' instead of 'runner' | |
| pwd # /home/runner/work/iiab/iiab == $GITHUB_WORKSPACE == ${{ github.workspace }} | |
| apt-get update -y --allow-releaseinfo-change | |
| apt-get install --no-install-recommends -y git | |
| ls /opt/iiab/iiab | |
| mkdir /etc/iiab | |
| cp /opt/iiab/iiab/vars/local_vars_unittest.yml /etc/iiab/local_vars.yml | |
| /opt/iiab/iiab/scripts/ansible | |
| ./iiab-install | |
| cd /opt/iiab/iiab | |
| iiab-summary | |
| cat /etc/iiab/iiab_state.yml |