diff --git a/.github/workflows/rattler-build.yml b/.github/workflows/rattler-build.yml index 91009ba..158dfe8 100644 --- a/.github/workflows/rattler-build.yml +++ b/.github/workflows/rattler-build.yml @@ -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 }} diff --git a/recipe/pixi_build_cmake.yaml b/recipe/pixi_build_cmake.yaml index 98d9d35..7204270 100644 --- a/recipe/pixi_build_cmake.yaml +++ b/recipe/pixi_build_cmake.yaml @@ -18,6 +18,7 @@ source: requirements: build: + - sccache - ${{ compiler("rust") }} host: - xz >=5.0, <6.0 @@ -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 diff --git a/recipe/pixi_build_python.yaml b/recipe/pixi_build_python.yaml deleted file mode 100644 index f0f7e32..0000000 --- a/recipe/pixi_build_python.yaml +++ /dev/null @@ -1,40 +0,0 @@ -package: - name: pixi-build-python - version: "${{ env.get('PIXI_BUILD_PYTHON_VERSION', default='0.1.0dev') }}" - -# cache: -# source: -# path: .. -# requirements: -# build: -# - ${{ compiler("rust") }} -# host: -# - xz >=5.0, <6.0 -# - if: unix -# then: openssl - -source: - path: .. - -requirements: - build: - - ${{ compiler("rust") }} - host: - - xz >=5.0, <6.0 - - if: unix - then: openssl - -build: - script: - - if: unix - then: - - export OPENSSL_DIR="$PREFIX" - - cargo install --locked --root $PREFIX --path crates/pixi-build-python --no-track - else: - - cargo install --locked --root %PREFIX% --path crates/pixi-build-python --no-track - files: - - bin/pixi-build-python - - bin/pixi-build-python.exe - -tests: - - script: pixi-build-python --help diff --git a/recipe/pixi_build_rattler_build.yaml b/recipe/pixi_build_rattler_build.yaml deleted file mode 100644 index 3e797f6..0000000 --- a/recipe/pixi_build_rattler_build.yaml +++ /dev/null @@ -1,40 +0,0 @@ -package: - name: pixi-build-rattler-build - version: "${{ env.get('PIXI_BUILD_RATTLER_BUILD_VERSION', default='0.1.0dev') }}" - -# cache: -# source: -# path: .. -# requirements: -# build: -# - ${{ compiler("rust") }} -# host: -# - xz >=5.0, <6.0 -# - if: unix -# then: openssl - -source: - path: .. - -requirements: - build: - - ${{ compiler("rust") }} - host: - - xz >=5.0, <6.0 - - if: unix - then: openssl - -build: - script: - - if: unix - then: - - export OPENSSL_DIR="$PREFIX" - - cargo install --locked --root $PREFIX --path crates/pixi-build-rattler-build --no-track - else: - - cargo install --locked --root %PREFIX% --path crates/pixi-build-rattler-build --no-track - files: - - bin/pixi-build-rattler-build - - bin/pixi-build-rattler-build.exe - -tests: - - script: pixi-build-rattler-build --help diff --git a/scripts/generate_version_matrix.py b/scripts/generate_version_matrix.py index 7606008..3ea796d 100644 --- a/scripts/generate_version_matrix.py +++ b/scripts/generate_version_matrix.py @@ -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()