Skip to content

Commit 01f9ca5

Browse files
committed
Use pixi on github action
1 parent 20c60d9 commit 01f9ca5

File tree

1 file changed

+19
-32
lines changed

1 file changed

+19
-32
lines changed

.github/workflows/conda-build.yml

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,22 @@ name: Anaconda build
22
on: [push]
33

44
jobs:
5-
build:
6-
name: ${{ matrix.os }}
7-
runs-on: ${{ matrix.os }}
8-
env:
9-
GIT_HASH: ${{ github.sha }}
10-
GDX_VERSION: 0.14.4
11-
strategy:
12-
fail-fast: false
13-
matrix:
14-
os: ["ubuntu-latest", "windows-2022"]
15-
steps:
16-
- name: Clone repository
17-
uses: actions/checkout@v4
18-
with:
19-
submodules: true
20-
- uses: conda-incubator/setup-miniconda@v3
21-
with:
22-
auto-update-conda: true
23-
activate-environment: build
24-
python-version: "3.12"
25-
- name: create meta.yaml
26-
run: python
27-
- name: Setup conda forge
28-
run: |
29-
conda config --add channels conda-forge
30-
conda config --set channel_priority strict
31-
- name: Install build requirements
32-
run: conda install mamba boa jinja2
33-
- name: Generate package metadata
34-
run: python ./conda/metagen.py
35-
- name: Build conda package
36-
run: conda mambabuild ./conda
5+
build:
6+
name: ${{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
env:
9+
GIT_HASH: ${{ github.sha }}
10+
GDX_VERSION: 0.14.4
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: ["ubuntu-latest", "windows-2022"]
15+
steps:
16+
- name: Clone repository
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: true
20+
- uses: prefix-dev/setup-pixi@v0.9.4
21+
- uses: extractions/setup-just@v3
22+
- name: Build conda package
23+
run: just pixi_build

0 commit comments

Comments
 (0)