Update VirtualBox build + extend to ARM64 #207
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 initialises the vagrant box | |
| # then just runs some initial ansible tasks | |
| # for the full build, see build-vagrant.yml | |
| runs-on: macos-latest | |
| env: | |
| VAGRANT_NO_GUI: true | |
| VAGRANT_ON_GH: true | |
| 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 Vagrant with HomeBrew | |
| run: | | |
| brew tap hashicorp/tap | |
| brew install hashicorp/tap/hashicorp-vagrant | |
| - name: Install VirtualBox with HomeBrew | |
| run: brew install --cask virtualbox | |
| - name: Build Vagrant Box and write the SSH config | |
| run: | | |
| vagrant up | |
| vagrant ssh-config > vagrant-ssh | |
| - name: Provision with Ansible | |
| run: ansible-playbook | |
| - name: Archive ansible log | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ansible-log | |
| path: ansible.log |