Skip to content

Commit 97254bb

Browse files
committed
Update ci
1 parent a46d42f commit 97254bb

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ on:
33
push:
44
branches:
55
- '*'
6-
#pull_request:
7-
# branches:
8-
# - '*'
96
jobs:
107
build:
118
name: Build (${{ matrix.python-version }}, ${{ matrix.os }})
@@ -14,29 +11,17 @@ jobs:
1411
fail-fast: false
1512
matrix:
1613
os: ['ubuntu-latest', 'windows-latest']
17-
python-version: ['3.12']
1814
steps:
1915
- name: "Download"
20-
uses: actions/checkout@v2
21-
- name: "Install miniconda"
22-
uses: conda-incubator/setup-miniconda@v2
16+
uses: actions/checkout@v5
17+
- name: "Create environment"
18+
uses: mamba-org/setup-micromamba@v2
2319
with:
24-
auto-update-conda: true
25-
python-version: ${{ matrix.python-version }}
26-
- name: "Configure conda"
27-
run: |
28-
conda info
29-
conda config --add channels conda-forge
30-
conda install nomkl
31-
- name: "Install compiler"
32-
if: ${{ matrix.os == 'ubuntu-latest' }}
33-
shell: bash -l {0}
34-
run: |
35-
conda install gxx_linux-64
36-
- name: "Install"
20+
environment-file: environment.yml
21+
cache-environment: true
22+
- name: "Install declaracad"
3723
shell: bash -l {0}
3824
run: |
39-
conda install -c trelau -c conda-forge pyocct
4025
python -m pip install -e .
4126
python -m pip install cx-freeze
4227
- name: "Build dist"
@@ -50,7 +35,7 @@ jobs:
5035
run: |
5136
python release.py bdist_msi
5237
- name: "Upload package"
53-
uses: actions/upload-artifact@v2
38+
uses: actions/upload-artifact@v4
5439
with:
5540
name: declaracad-py${{ matrix.python-version }}-${{ matrix.os }}
5641
path: dist/declaracad-*

environment.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ name: declaracad
33
channels:
44
- conda-forge
55
- defaults
6-
- https://codelv.com/assets/repo
6+
- https://repo.codelv.com
77

88
dependencies:
99
- python >=3.12
1010
- cxx-compiler
1111
- pybind11
12-
- pysmesh >=9.6
1312
- pyocct >=7.9
14-
- pychrono >=7.0

0 commit comments

Comments
 (0)