Skip to content

release.sh: upload xvfb last so it's the one left stuck if quota runs… #314

release.sh: upload xvfb last so it's the one left stuck if quota runs…

release.sh: upload xvfb last so it's the one left stuck if quota runs… #314

Workflow file for this run

name: ci
on:
pull_request:
push:
branches: [master, pypi2] # TODO: remove pypi2 after publish testing
jobs:
build:
name: build (${{ matrix.platform }})
runs-on: ${{ (github.repository == 'commaai/dependencies' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'commaai/dependencies')) && matrix.runs-on-namespace || matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- platform: linux-x86_64
runs-on: ubuntu-latest
runs-on-namespace: namespace-profile-amd64-8x16
- platform: linux-arm64
runs-on: ubuntu-24.04-arm
runs-on-namespace: namespace-profile-arm64-big
- platform: macos
runs-on: macos-latest
runs-on-namespace: namespace-profile-macos-8x14
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # full history for `git rev-list --count` versioning
- name: Select Xcode 16
if: runner.os == 'macOS'
run: |
XCODE=$(ls -d /Applications/Xcode_16*.app 2>/dev/null | sort -V | tail -1)
if [ -n "$XCODE" ]; then
echo "Selected: $XCODE"
sudo xcode-select -s "$XCODE"
fi
- uses: actions/cache@v4
with:
key: build-cache-v2-${{ matrix.platform }}-${{ hashFiles('build.sh', 'setup.sh', '*/pyproject.toml', '*/setup.py', '*/build.sh') }}
restore-keys: build-cache-v2-${{ matrix.platform }}-
path: |
.uv-cache
*/*/install
*/*/toolchain
*/*/bin
*/*-src
*/build
- name: Build wheels
env:
MANYLINUX: ${{ runner.os == 'Linux' && '1' || '0' }}
UV_CACHE_DIR: ${{ github.workspace }}/.uv-cache
BUILD_SH_REUSE_MANYLINUX_ARTIFACTS: "1"
run: ./build.sh
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.platform }}
path: dist/*.whl
test:
name: test distro (${{ matrix.image }})
needs: build
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- image: debian:trixie-slim
runs-on: ubuntu-latest
- image: ubuntu:24.04
runs-on: ubuntu-latest
- image: fedora:41
runs-on: ubuntu-latest
- image: archlinux:latest
runs-on: ubuntu-latest
- image: opensuse/tumbleweed:latest
runs-on: ubuntu-latest
- image: ghcr.io/void-linux/void-glibc:latest
runs-on: ubuntu-latest
- image: debian:trixie-slim
runs-on: ubuntu-24.04-arm
# TODO: add musl test
steps:
- uses: actions/checkout@v6
- uses: actions/download-artifact@v4
with:
name: ${{ contains(matrix.runs-on, 'arm') && 'wheels-linux-arm64' || 'wheels-linux-x86_64' }}
path: dist/
- run: ./test_wheels_in_image.sh "${{ matrix.image }}"
publish:
name: publish wheels
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/pypi2') # TODO: remove pypi2 after publish testing
needs: [build, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
merge-multiple: true
path: dist
- name: Publish wheels to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PAT }}
run: ./release.sh