Improve CI #15
Workflow file for this run
This file contains 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: Main Action | |
on: | |
push: | |
branches: [main] | |
tags: 'v*' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-python-based: | |
name: Build ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: [happyserial, swarmit, pydotbot, qrkey] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . # Install swarmake package | |
- name: Build ${{ matrix.target }} | |
run: | | |
BUILD_CONFIG=debug swarmake build ${{ matrix.target }} | |
build-python-js-based: | |
name: Build ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: [dotbot-authority] # TODO: move pydotbot to this workflow | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . # Install swarmake package | |
- name: Build ${{ matrix.target }} | |
run: | | |
BUILD_CONFIG=debug swarmake build ${{ matrix.target }} | |
build-with-docker: | |
name: Build ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: [dotbot, aiot_play_fw, human-swarm, dda] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . # Install swarmake package | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v1 | |
- name: Build ${{ matrix.target }} | |
run: | | |
BUILD_CONFIG=debug swarmake build ${{ matrix.target }} |