Skip to content

Commit 9d9ad85

Browse files
jaimergpjezdez
andauthored
Rebuild with provenance metadata (#13)
Co-authored-by: Jannis Leidel <jannis@leidel.info>
1 parent a8bf297 commit 9d9ad85

File tree

5 files changed

+108
-108
lines changed

5 files changed

+108
-108
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
pull_request:
88
branches:
99
- main
10-
schedule:
11-
- cron: '30 6 * * *'
1210

1311
concurrency:
1412
# Concurrency group that uses the workflow name and PR number if available
@@ -34,24 +32,40 @@ jobs:
3432
env:
3533
PYTHONUNBUFFERED: "1"
3634
steps:
37-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
38-
- uses: conda-incubator/setup-miniconda@v3
35+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
36+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
3937
with:
4038
auto-activate-base: true
4139
activate-environment: ""
4240
run-post: false
4341

4442
- name: Install dependencies
4543
shell: bash -el {0}
46-
run: conda install -y "conda-build!=3.28.0,!=3.28.1" anaconda-client
44+
run: conda install -y --override-channels -c defaults "conda-build!=3.28.0,!=3.28.1" anaconda-client
45+
46+
- name: conda info
47+
shell: bash -el {0}
48+
run: |
49+
set -x
50+
conda info
51+
conda config --show-sources
52+
conda list
4753
4854
- name: Build recipe
4955
shell: bash -el {0}
5056
env:
5157
CONDA_BLD_PATH: ${{ runner.temp }}/bld
52-
run: conda build recipe --override-channels -c conda-forge -e .ci_support/${{ matrix.subdir }}.yaml
58+
run: |
59+
conda build recipe \
60+
--override-channels \
61+
-c conda-forge \
62+
-e .ci_support/${{ matrix.subdir }}.yaml \
63+
--extra-meta \
64+
flow_run_id="github_$GITHUB_RUN_ID" \
65+
remote_url="https://github.com/$GITHUB_REPOSITORY" \
66+
sha="$GITHUB_SHA"
5367
54-
- uses: actions/upload-artifact@v4
68+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5569
if: github.event_name == 'pull_request'
5670
with:
5771
name: conda-launchers-${{ matrix.subdir }}
@@ -64,7 +78,7 @@ jobs:
6478
CONDA_BLD_PATH: ${{ runner.temp }}/bld
6579
ANACONDA_ORG_TOKEN: ${{ secrets.ANACONDA_ORG_CONDA_CANARY_TOKEN }}
6680
ANACONDA_ORG_CHANNEL: conda-canary
67-
ANACONDA_ORG_LABEL: dev
81+
ANACONDA_ORG_LABEL: conda-launchers_dev
6882
run: |
6983
anaconda \
7084
--token="${ANACONDA_ORG_TOKEN}" \
@@ -86,21 +100,31 @@ jobs:
86100
runs-on: windows-latest
87101
steps:
88102
- name: Checkout Source
89-
uses: actions/checkout@v4
103+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
90104
with:
91105
fetch-depth: 1
92106

93107
- name: Setup Pixi
94-
uses: prefix-dev/setup-pixi@v0.8.1
108+
uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
95109
with:
96110
cache: true
97111

112+
- name: Pixi info
113+
shell: pwsh
114+
run: |
115+
pixi info
116+
pixi list
117+
98118
- name: Run Build
99119
shell: pwsh
100-
run: pixi run build
120+
run: |
121+
pixi run build `
122+
--extra-meta flow_run_id="github_$GITHUB_RUN_ID" `
123+
--extra-meta remote_url="https://github.com/$GITHUB_REPOSITORY" `
124+
--extra-meta sha="$GITHUB_SHA"
101125
102126
- name: Upload Artifacts
103-
uses: actions/upload-artifact@v4
127+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
104128
with:
105129
name: conda-launchers-zig-builds
106130
path: |

pixi.lock

Lines changed: 62 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[project]
1+
[workspace]
22
name = "conda-launchers"
3-
version = "0.0.0"
3+
version = "0.1.0"
44
description = "Conda launchers for Windows"
55
channels = ["conda-forge"]
66
platforms = ["win-64"]

recipe-zig/recipe.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
context:
22
name: conda-launchers
33
version: "24.7.1"
4-
build_number: 0
4+
build_number: 2
55

66
recipe:
77
name: ${{ name|lower }}
@@ -75,7 +75,7 @@ outputs:
7575

7676
requirements:
7777
build:
78-
- zig >=0.13.0
78+
- zig ==0.13.0
7979

8080
run:
8181
- python
@@ -99,7 +99,7 @@ outputs:
9999

100100
requirements:
101101
build:
102-
- zig >=0.13.0
102+
- zig ==0.13.0
103103

104104
run:
105105
- python
@@ -123,7 +123,7 @@ outputs:
123123

124124
requirements:
125125
build:
126-
- zig >=0.13.0
126+
- zig ==0.13.0
127127

128128
run:
129129
- python
@@ -155,3 +155,5 @@ about:
155155
extra:
156156
recipe-maintainers:
157157
- chawyehsu
158+
- jaimergp
159+
- jezdez

recipe/meta.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ source:
1919
folder: cpython-LICENSE
2020

2121
build:
22-
number: 1
22+
number: 2
2323
skip: true # [not win]
2424
ignore_run_exports_from:
2525
- {{ compiler("c") }}
@@ -56,3 +56,4 @@ about:
5656
extra:
5757
recipe-maintainers:
5858
- jaimergp
59+
- jezdez

0 commit comments

Comments
 (0)