Expressions, Parameters and Renderers #300
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
# This file is autogenerated by maturin v0.15.2 | |
# To update, run | |
# | |
# maturin generate-ci github | |
# | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- master | |
tags: | |
- '*' | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build_conda: | |
name: Build package | |
runs-on: ubuntu-latest # Currently, only need noarch | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# matrix: | |
# include: | |
# - os: ubuntu-latest | |
# target-platform: linux-64 | |
# - os: ubuntu-latest | |
# target-platform: linux-aarch64 | |
# - os: windows-latest | |
# target-platform: win-64 | |
# - os: macos-latest | |
# target-platform: osx-64 | |
# - os: macos-14 | |
# target-platform: osx-arm64 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Tweak recipe | |
run: pip install toml && python .github/workflows/generate_recipe.py | |
- name: Build conda package | |
uses: prefix-dev/[email protected] | |
env: | |
CONDA_BLD_PATH: ../output | |
RATTLER_BUILD_EXPERIMENTAL: "true" | |
with: | |
# needs to be unique for each matrix entry | |
#artifact-name: package-noarch #-${{ matrix.target-platform }} | |
recipe-path: ./recipe.yaml | |
upload-artifact: false | |
#build-args: --target-platform noarch # ${{ matrix.target-platform }}${{ matrix.target-platform == 'linux-aarch64' && ' --no-test' || '' }} | |
- run: mv ../output . | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: conda-package | |
path: | | |
output/**/*.tar.bz2 | |
output/**/*.conda | |
build_wheel: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ubuntu-latest # Currently, only need noarch | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# matrix: | |
# os: [ubuntu-latest, windows-latest, macos-13, macos-14] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: hynek/build-and-inspect-python-package@v2 | |
sdist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
- name: Build package | |
run: python -m build --sdist | |
- uses: actions/upload-artifact@v3 | |
name: Upload sdist | |
with: | |
name: wheels | |
path: dist |