Skip to content
Closed
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
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: build.yml
on:
push:
branches:
- main
pull_request:
types:
- labeled
workflow_dispatch:

jobs:
build:
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'ci:pixi-build' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Set up Pixi
uses: prefix-dev/setup-pixi@main
with:
locked: false

- name: Build with Pixi with Pixi
run: pixi build

- name: Upload artifact pixi-x.x.x-<os>.conda
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: pixi-*.conda
path: pixi-*.conda
if-no-files-found: error

# - name: Authenticate prefix.dev
# run: pixi auth login https://prefix.dev --token ${{ secrets.PIXI_BUILD_TEST_CHANNEL_API_KEY }}

#
# Requires a way to bump the version to test the file
# - name: Upload to prefix.dev
# run: pixi upload https://prefix.dev/api/v1/upload/pixi-build-test pixi-*.conda
#
# - name: Install from prefix.dev
# shell: bash
# run: |
# #!/bin/bash
# pixi_file=$(ls pixi-*.conda)
# echo "pixi_file: $pixi_file"
# spec=pixi=$(echo $pixi_file | cut -d- -f2)=$(echo $pixi_file | cut -d- -f3 | cut -d_ -f1)
# echo "spec: $spec"
# pixi global install --channel https://prefix.dev/pixi-build-test -e pixi-test --expose pixi-test=pixi $spec
#
# - name: Test installed pixi
# shell: bash
# run: |
# pixi-test --version
# pixi-test --help
# pixi-test global install bat
# bat --version
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ site/
.cache
pytest-temp
/vendor
*.conda
10 changes: 10 additions & 0 deletions examples/pybind11/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[build-system]
build-backend = "scikit_build_core.build"
requires = ["scikit-build-core", "pybind11"]
[tool.uv]
no-binary = true

[project]
classifiers = [
Expand All @@ -12,6 +14,14 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"arrow>=1.2.3",
"click>=8.1.8",
"numba>=0.56.4",
"numpy>=1.21.6",
"pytest>=7.4.4",
"scipy>=1.7.3",
]
description = "A simple pybind11 example"
name = "mysum"
requires-python = ">=3.7"
Expand Down
Loading
Loading