Skip to content

Update VirtualBox build + extend to ARM64 #215

Update VirtualBox build + extend to ARM64

Update VirtualBox build + extend to ARM64 #215

Workflow file for this run

---
name: CI-build
on:
push:
branches: [main]
pull_request:
paths-ignore: ["docs/**"]
jobs:
build-init:
# this job tests ansible provisioning in Docker containers
# Tests on both ARM64 and AMD64 architectures using Ubuntu runners
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- 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: Install Docker collection for CI
run: ansible-galaxy collection install community.docker
- 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 --limit docker-ci -e build_hosts=docker-ci --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