-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,239 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly # or daily, weekly | ||
groups: | ||
dependencies: | ||
patterns: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: ci-tests | ||
|
||
# bump 1 | ||
on: | ||
push: | ||
|
||
# Use concurrency to ensure that only one instance of this workflow is running at a time | ||
concurrency: | ||
group: ci-tests-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CROOT_DIR: /home/runner/work/build | ||
ARTIFACTS_DIR: /home/runner/work/artifacts | ||
PKG_DIR: linux-64 | ||
|
||
jobs: | ||
|
||
build_test: | ||
name: ada-cpp-test | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
# Install OpenGL dependencies | ||
- name: Install OpenGL dependencies | ||
run: sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev | ||
|
||
- uses: mamba-org/setup-micromamba@v1 # https://github.com/mamba-org/setup-micromamba | ||
with: | ||
environment-file: environment.build.yml | ||
cache-environment: true | ||
cache-downloads: true | ||
create-args: >- | ||
python=3.12 | ||
ada-py | ||
- name: install package | ||
run: | | ||
pip install . | ||
- name: test package | ||
run: | | ||
pytest tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
name: ci-ada-cpp-test | ||
name: pr-tests | ||
|
||
# bump 1 | ||
on: | ||
push: | ||
# branches: | ||
# - donotrun | ||
paths-ignore: | ||
- README.md | ||
- .gitignore | ||
- .github/workflows/basic_test.yaml | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
# Use concurrency to ensure that only one instance of this workflow is running at a time | ||
concurrency: | ||
group: pr-tests-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CROOT_DIR: /home/runner/work/build | ||
ARTIFACTS_DIR: /home/runner/work/artifacts | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
- uses: prefix-dev/[email protected] # https://github.com/prefix-dev/setup-pixi | ||
with: | ||
pixi-version: v0.28.2 | ||
cache: true | ||
environments: lint | ||
|
||
- run: pixi run lint | ||
|
||
build_test: | ||
name: ada-cpp-${{ matrix.platform.name }}-${{ matrix.pyver.name }}-${{ matrix.variant.name }}=${{ matrix.variant.value }} | ||
runs-on: ${{ matrix.platform.distver }} | ||
|
@@ -25,19 +41,26 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
pyver: [ | ||
{ name: py311, distver: '3.11' }, | ||
{ name: py312, distver: '3.12' }, | ||
] | ||
platform: [ | ||
{ name: win, distver: windows-latest, pkg_dir: 'win-64' }, | ||
{ name: linux, distver: ubuntu-latest, pkg_dir: 'linux-64' }, | ||
{ name: macOS, distver: macos-latest, pkg_dir: 'osx-64' } | ||
{ name: macOS, distver: macos-13, pkg_dir: 'osx-64' } | ||
] | ||
variant: [ | ||
{ name: occt, value: '7.7.2=*novtk*' }, | ||
{ name: occt, value: '7.7.2=*all*' } | ||
{ name: variant, value: 'novtk' }, | ||
{ name: variant, value: 'all' } | ||
] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
# Install OpenGL dependencies | ||
- name: Install OpenGL dependencies | ||
if: ${{ matrix.platform.name == 'linux' }} | ||
run: sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev | ||
|
||
- name: set ENV WORK_DIR | ||
run: | | ||
|
@@ -58,7 +81,7 @@ jobs: | |
if: ${{ matrix.platform.name == 'macOS' }} | ||
run: | | ||
curl -L https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.15.sdk.tar.xz | tar -xvJf - -C /Users/runner/work/ | ||
- uses: mamba-org/setup-micromamba@v1 # https://github.com/mamba-org/setup-micromamba | ||
with: | ||
|
@@ -73,11 +96,9 @@ jobs: | |
zstd_compression_level: 19 | ||
channel_priority: strict | ||
channels: | ||
- krande | ||
- conda-forge | ||
create-args: >- | ||
python=${{ matrix.pyver.distver }} | ||
anaconda-client | ||
python=3.12 | ||
boa | ||
- name: make dirs | ||
|
@@ -88,8 +109,4 @@ jobs: | |
- name: build local packages | ||
run: | | ||
conda mambabuild . --python ${{ matrix.pyver.distver }} --variants "{ '${{matrix.variant.name}}': '${{matrix.variant.value}}'}" | ||
working-directory: conda | ||
|
||
- name: upload to anaconda | ||
run: | | ||
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload --force --user krande --label dev ${{ env.ARTIFACTS_DIR }}/${{ env.PKG_DIR }}/*.conda | ||
working-directory: conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ build/ | |
cmake-build*/ | ||
.env | ||
.env.json | ||
temp/ | ||
temp/ | ||
.pixi/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
python -m pip install . --no-build-isolation -v ^ | ||
--config-settings=cmake.args=-DODBDUMP_BIN_DIR="%LIBRARY_PREFIX%"/bin ^ | ||
--config-settings=cmake.args=-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^ | ||
--config-settings=cmake.args=-DCONDA_BUILD=ON | ||
|
||
python %RECIPE_DIR%/stub_gen.py | ||
--config-settings=cmake.args=-DCONDA_BUILD=ON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,39 @@ | ||
occt: | ||
- 7.7.2=*novtk* | ||
- 7.7.2=*all* | ||
- 7.7.2 | ||
|
||
#CONDA_BUILD_SYSROOT: | ||
# - "/Users/runner/work/MacOSX10.15.sdk" # [osx] | ||
variant: | ||
- novtk | ||
- all | ||
|
||
c_stdlib: | ||
- vs # [win] | ||
- sysroot # [linux] | ||
- macosx_deployment_target # [osx and x86_64] | ||
|
||
cdt_name: | ||
- cos7 # [linux] | ||
|
||
c_stdlib_version: | ||
- "10.15" # [osx and x86_64] | ||
- '2.17' # [linux] | ||
|
||
MACOSX_SDK_VERSION: # [osx and x86_64] | ||
- "10.15" # [osx and x86_64] | ||
|
||
c_compiler: | ||
- vs2022 # [win] | ||
- gcc # [linux] | ||
- clang # [osx] | ||
|
||
c_compiler_version: | ||
- '17' # [osx] | ||
- '13' # [linux] | ||
|
||
cxx_compiler: | ||
- vs2022 # [win] | ||
- vs2022 # [win] | ||
- gcc # [linux] | ||
- clang # [osx] | ||
|
||
cxx_compiler_version: | ||
- '17' # [osx] | ||
- '13' # [linux] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.