Skip to content

try depot #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion .github/workflows/rattler-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ jobs:
TARGET_PLATFORM: ${{ matrix.bins.target }}
RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: "true"
RATTLER_BUILD_COLOR: "always"
SCCACHE_WEBDAV_TOKEN: ${{ secrets.DEPOT_TOKEN }}
SCCACHE_WEBDAV_ENDPOINT: "https://cache.depot.dev"

run: |
pixi run build-recipe --recipe recipe/${{ matrix.bins.recipe_name }}.yaml --target-platform=${{ env.TARGET_PLATFORM }}
pixi run build-recipe --recipe recipe/${{ matrix.bins.recipe_name }}.yaml --target-platform=${{ env.TARGET_PLATFORM }} --no-build-id
- name: Upload OSX or Linux packages
shell: bash
if: ${{ github.event_name == 'push' && matrix.bins.os != 'windows-latest' && github.repository == env.REPO_NAME }}
Expand Down
20 changes: 14 additions & 6 deletions recipe/pixi_build_cmake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ source:

requirements:
build:
- sccache
- ${{ compiler("rust") }}
host:
- xz >=5.0, <6.0
Expand All @@ -27,12 +28,19 @@ requirements:

build:
script:
- if: unix
then:
- export OPENSSL_DIR="$PREFIX"
- cargo install --locked --root $PREFIX --path crates/pixi-build-cmake --no-track
else:
- cargo install --locked --root %PREFIX% --path crates/pixi-build-cmake --no-track
secrets:
- SCCACHE_WEBDAV_TOKEN

content:
- if: unix
then:
# configure sccache for cargo
- export RUSTC_WRAPPER=sccache
- export OPENSSL_DIR="$PREFIX"
- cargo install --locked --root $PREFIX --path crates/pixi-build-cmake --no-track
- sccache --show-stats
else:
- cargo install --locked --root %PREFIX% --path crates/pixi-build-cmake --no-track
files:
- bin/pixi-build-cmake
- bin/pixi-build-cmake.exe
Expand Down
40 changes: 0 additions & 40 deletions recipe/pixi_build_python.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions recipe/pixi_build_rattler_build.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions scripts/generate_version_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def generate_matrix():
# https://github.com/orgs/community/discussions/67591
targets = [
{"target": "linux-64", "os": "ubuntu-20.04"},
{"target": "linux-aarch64", "os": "ubuntu-latest"},
{"target": "linux-ppc64le", "os": "ubuntu-latest"},
{"target": "win-64", "os": "windows-latest"},
{"target": "osx-64", "os": "macos-13"},
{"target": "osx-arm64", "os": "macos-14"}
# {"target": "linux-aarch64", "os": "ubuntu-latest"},
# {"target": "linux-ppc64le", "os": "ubuntu-latest"},
# {"target": "win-64", "os": "windows-latest"},
# {"target": "osx-64", "os": "macos-13"},
# {"target": "osx-arm64", "os": "macos-14"}
]

git_tags = get_git_tags()
Expand Down
Loading