-
Notifications
You must be signed in to change notification settings - Fork 33
57 lines (55 loc) · 2.71 KB
/
package.yml
File metadata and controls
57 lines (55 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: conda-build
on:
pull_request:
push:
branches:
- main
tags:
- "*"
paths:
- '.github/**'
- 'conda.recipe/**'
jobs:
build:
name: ${{ matrix.variant-file }}
runs-on: ${{ matrix.os }}
env:
CI: True
strategy:
fail-fast: false
matrix:
include:
- { variant-file: linux_64_numpy2.0python3.10.____cpython, target-platform: linux-64, os: ubuntu-latest, rattler-build-args: '' }
- { variant-file: linux_64_numpy2python3.13.____cp313, target-platform: linux-64, os: ubuntu-latest, rattler-build-args: '' }
- { variant-file: osx_64_numpy2.0python3.10.____cpython, target-platform: osx-64, os: macos-15-intel, rattler-build-args: '' }
- { variant-file: osx_arm64_numpy2.0python3.10.____cpython, target-platform: osx-arm64, os: macos-latest, rattler-build-args: '' }
- { variant-file: osx_arm64_numpy2python3.13.____cp313, target-platform: osx-arm64, os: macos-latest, rattler-build-args: '' }
- { variant-file: win_64_numpy2.0python3.10.____cpython, target-platform: win-64, os: windows-latest, rattler-build-args: '' }
- { variant-file: win_64_numpy2python3.13.____cp313, target-platform: win-64, os: windows-latest, rattler-build-args: '' }
steps:
- name: Checkout branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Get git metadata
id: git-metadata
shell: bash
run: |
if [ -f .git/shallow ]; then
git fetch --prune --unshallow
fi
GIT_DESCRIBE_TAG="$(git describe --tags --abbrev=0 || echo UNKNOWN)"
echo GIT_DESCRIBE_TAG=${GIT_DESCRIBE_TAG} >> $GITHUB_OUTPUT
GIT_DESCRIBE_HASH=g"$(git rev-parse --short HEAD || echo UNKNOWN)"
echo GIT_DESCRIBE_HASH=${GIT_DESCRIBE_HASH} >> $GITHUB_OUTPUT
GIT_DESCRIBE_NUMBER="$(git rev-list --count ${GIT_DESCRIBE_TAG}..HEAD || echo UNKNOWN)"
echo GIT_DESCRIBE_NUMBER=$GIT_DESCRIBE_NUMBER >> $GITHUB_OUTPUT
- uses: prefix-dev/rattler-build-action@91928848ad1ec2025fb7fdd6c018a88ad31e3609 # v0.2.36
with:
recipe-path: conda.recipe/recipe.yaml
build-args: -m .ci_support/${{ matrix.variant-file }}.yaml --target-platform ${{ matrix.target-platform }} ${{ matrix.rattler-build-args }}
artifact-name: package-${{ matrix.variant-file }}
env:
GIT_DESCRIBE_TAG: ${{ steps.git-metadata.outputs.GIT_DESCRIBE_TAG }}
GIT_DESCRIBE_HASH: ${{ steps.git-metadata.outputs.GIT_DESCRIBE_HASH }}
GIT_DESCRIBE_NUMBER: ${{ steps.git-metadata.outputs.GIT_DESCRIBE_NUMBER }}