Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
- name: Check syntax of fit-demo2
run: |
docker compose -f compose-files/fit-demo/docker-compose.2.yml config
- name: Check syntax of fanuc-demo
run: |
docker compose -f compose-files/fanuc-demo/docker-compose.yml config
- name: Check syntax of ur-demo (sim)
run: |
docker compose -f compose-files/ur-demo/docker-compose.yml -f compose-files/ur-demo/docker-compose.sim.yml config
Expand Down
34 changes: 27 additions & 7 deletions .github/workflows/pants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
build:
env:
PANTS_CONFIG_FILES: pants.ci.toml
PEX_ROOT: ${{ github.workspace }}/.pex
PANTS_SETUP_CACHE_DIR: ${{ github.workspace }}/.cache/pants/setup
PANTS_NAMED_CACHES_DIR: ${{ github.workspace }}/.cache/pants/named_caches
PANTS_LOCAL_STORE_DIR: ${{ github.workspace }}/.cache/pants/lmdb_store
TMPDIR: ${{ github.workspace }}/.tmp
runs-on: ubuntu-24.04
needs: org-check
strategy:
Expand All @@ -28,25 +33,38 @@ jobs:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 30000
root-reserve-mb: 8096
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-docker-images: 'true'
- name: Show disk space
run: |
df -h / /mnt $GITHUB_WORKSPACE
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Prepare workspace tmpdir
run: |
mkdir -p "$GITHUB_WORKSPACE/.tmp"
chmod 1777 "$GITHUB_WORKSPACE/.tmp"
- name: Checkout LFS objects
run: git lfs checkout
- name: Move Docker storage to workspace
run: |
sudo systemctl stop docker || sudo service docker stop
sudo rm -rf /var/lib/docker
mkdir -p "$GITHUB_WORKSPACE/.docker"
sudo ln -s "$GITHUB_WORKSPACE/.docker" /var/lib/docker
sudo chown -R "$USER":"$USER" "$GITHUB_WORKSPACE/.docker"
sudo systemctl start docker || sudo service docker start
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: jazzy
- uses: pantsbuild/actions/init-pants@v5-scie-pants
with:
pants-python-version: ${{ matrix.python-version }}
Expand All @@ -59,9 +77,11 @@ jobs:
pants --changed-since=HEAD update-build-files --check
- name: install system dependencies
run: | # cargo is required to build fastuuid (no wheels for Python 3.11)
sudo apt update
sudo apt install jq cargo
sudo apt-get update
sudo apt-get install -y --no-install-recommends jq cargo
sudo ./build-support/install_ur_dependencies.sh
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
- name: Lint
run: |
pants --changed-since=origin/master lint
Expand All @@ -73,8 +93,8 @@ jobs:
source /opt/ros/jazzy/setup.bash
pants --changed-since=origin/master --changed-dependents=transitive test
- name: Build Docker images
run: | # filter out non-essential docker images (there was a problem with full storage on github)
pants filter --target-type=docker_image --changed-since=origin/master --changed-dependents=transitive | grep -v arcor2_3d_mouse | grep -v arcor2_fanuc arcor2_fanuc_upload_object_types | xargs pants package
run: |
pants filter --target-type=docker_image --changed-since=origin/master --changed-dependents=transitive | xargs pants package
- name: Build Python packages
run: |
pants filter --target-type=python_distribution :: | xargs pants package
Expand Down
Loading
Loading