Skip to content

Commit 13a133a

Browse files
committed
[TMP] test build
1 parent 9a52f29 commit 13a133a

File tree

2 files changed

+37
-15
lines changed

2 files changed

+37
-15
lines changed

.github/workflows/build-init.yml

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,57 @@ on:
88
paths-ignore: ["docs/**"]
99
jobs:
1010
build-init:
11-
# this job initialises the vagrant box
12-
# then just runs some initial ansible tasks
13-
# for the full build, see build.yml
14-
runs-on: macos-latest
15-
env:
16-
VAGRANT_NO_GUI: true
17-
VAGRANT_ON_GH: true
11+
# this job tests ansible provisioning in Docker containers
12+
# on both ARM64 (ubuntu) and AMD64 (macos) architectures
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
1817

1918
steps:
2019
- uses: actions/checkout@v4
21-
- name: set up Python
20+
21+
- name: Set up Python
2222
uses: actions/setup-python@v5
2323
with:
24-
python-version: 3.9
24+
python-version: 3.13
25+
26+
- name: Setup Docker (macOS only)
27+
if: runner.os == 'macOS'
28+
uses: douglascamata/setup-docker-macos-action@v1-alpha
2529

26-
- name: install pip requirements
30+
- name: Install pip requirements
2731
run: |
2832
pip install --upgrade pip
2933
pip install wheel
3034
pip install -r requirements.txt
3135
32-
- name: install ansible requirements
36+
- name: Install Ansible requirements
3337
run: ansible-galaxy install -r requirements.yml
3438

35-
- name: Build Vagrant Box
36-
run: ANSIBLE_ARGS="--tags init,ci_test" vagrant up
39+
- name: Start Ubuntu Docker container
40+
run: |
41+
docker run -d --name quantum-mobile \
42+
-v ${{ github.workspace }}:/workspace \
43+
ubuntu:24.04 \
44+
sleep infinity
45+
46+
- name: Prepare container for Ansible
47+
run: |
48+
docker exec quantum-mobile bash -c "
49+
apt-get update &&
50+
apt-get install -y python3 sudo systemd
51+
"
52+
53+
- name: Run Ansible provisioning
54+
run: |
55+
ansible-playbook -i .github/workflows/docker-inventory.yml \
56+
--tags init,ci_test \
57+
playbook-build.yml
3758
3859
- name: Archive ansible log
60+
if: always()
3961
uses: actions/upload-artifact@v4
4062
with:
41-
name: ansible-log
63+
name: ansible-log-${{ matrix.os }}
4264
path: ansible.log

.github/workflows/build-vagrant.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: set up Python
2929
uses: actions/setup-python@v5
3030
with:
31-
python-version: 3.9
31+
python-version: 3.13
3232

3333
- name: install pip requirements
3434
run: |

0 commit comments

Comments
 (0)