Update VirtualBox build + extend to ARM64 #209
Workflow file for this run
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: CI-build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths-ignore: ["docs/**"] | |
| jobs: | |
| build-init: | |
| # this job tests ansible provisioning in Docker containers | |
| # on both ARM64 (ubuntu) and AMD64 (macos) architectures | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.13 | |
| - name: Setup Docker (macOS only) | |
| if: runner.os == 'macOS' | |
| uses: douglascamata/setup-docker-macos-action@v1-alpha | |
| - name: Install pip requirements | |
| run: | | |
| pip install --upgrade pip | |
| pip install wheel | |
| pip install -r requirements.txt | |
| - name: Install Ansible requirements | |
| run: ansible-galaxy install -r requirements.yml | |
| - name: Start Ubuntu Docker container | |
| run: | | |
| docker run -d --name quantum-mobile \ | |
| -v ${{ github.workspace }}:/workspace \ | |
| ubuntu:24.04 \ | |
| sleep infinity | |
| - name: Prepare container for Ansible | |
| run: | | |
| docker exec quantum-mobile bash -c " | |
| apt-get update && | |
| apt-get install -y python3 sudo systemd | |
| " | |
| - name: Run Ansible provisioning | |
| run: | | |
| ansible-playbook -i .github/workflows/docker-inventory.yml \ | |
| --tags init,ci_test \ | |
| playbook-build.yml | |
| - name: Archive ansible log | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ansible-log-${{ matrix.os }} | |
| path: ansible.log |