wip: build with rattler-build #8
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
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
name: "Build Conda Package" | |
jobs: | |
rattler-build: | |
strategy: | |
matrix: | |
include: | |
- { target: linux-64, os: ubuntu-20.04 } | |
- { target: win-64, os: windows-latest } | |
# force older macos-13 to get x86_64 runners | |
# - { target: osx-64, os: macos-13 } | |
- { target: osx-arm64, os: macos-14 } | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/setup-pixi@v0.5.1 | |
with: | |
pixi-version: v0.32.1 | |
cache: true | |
environments: build-self | |
- name: Enable long paths | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: | | |
git config --global core.longpaths true | |
shell: bash | |
- name: Run rattler-build | |
shell: bash | |
env: | |
TARGET_PLATFORM: ${{ matrix.target }} | |
run: | | |
pixi r -e build-self rattler-build build --output-dir=$RUNNER_TEMP --target-platform=${{ env.TARGET_PLATFORM }} --no-include-recipe --experimental |