Skip to content

154 Bbox solely owned area #497

154 Bbox solely owned area

154 Bbox solely owned area #497

Workflow file for this run

# This file is autogenerated by maturin v0.15.1
# To update, run
#
# maturin generate-ci github
#
name: Savant-RS Python
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
tags:
- '*'
pull_request:
workflow_dispatch:
permissions: write-all
jobs:
linux:
strategy:
matrix:
include:
- docker_file: docker/Dockerfile.manylinux_2_28_ARM64
name: manylinux-arm
arch: linux/arm64
runner: ARM64
- docker_file: docker/Dockerfile.manylinux_2_28_X64
name: manylinux-x86
arch: linux/amd64
runner: X64
timeout-minutes: 600
runs-on:
- self-hosted
- ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
- name: Build docker image
uses: docker/build-push-action@v5
with:
file: ${{ matrix.docker_file }}
platforms: ${{ matrix.arch }}
tags: savant-rs
push: false
load: true
context: .
- name: Copy wheels
run: docker run --rm -v $(pwd)/distfiles:/tmp savant-rs cp -R /opt/dist /tmp
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.runner }}
path: distfiles/dist
release:
name: Release
runs-on: self-hosted
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ linux ]
steps:
- name: Make directory for download
run: mkdir -p artifacts
- name: Clean up old wheels
run: rm -rf artifacts/*.whl
- uses: actions/download-artifact@v4
with:
name: wheels-X64
path: artifacts
- uses: actions/download-artifact@v4
with:
name: wheels-ARM64
path: artifacts
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_PATH: artifacts/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish to PyPI
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# container: ghcr.io/insight-platform/manylinux_2_28_x64:v0.0.4
# command: upload
# args: --skip-existing artifacts/*.whl