-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (42 loc) · 960 Bytes
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Docker Build
on:
push:
branches:
- main
- master
pull_request:
branches:
- '*'
jobs:
docker:
strategy:
matrix:
os: [ubuntu-20.04, macos-13]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- name: Set up Docker
if: runner.os == 'Linux'
uses: docker/setup-buildx-action@v2
- name: Install Docker (macOS only)
if: runner.os == 'macOS'
run: |
brew install docker colima
colima start
- name: Verify Docker
run: |
docker --version
docker ps
- name: Setup Python
if: runner.os == 'macOS'
uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install requirements
run: pip install -r requirements.txt
- name: Build project using Docker
run: ./scripts/sim.py b