Skip to content

Commit

Permalink
fix CIs
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryMaciek committed Aug 2, 2023
1 parent 8f73561 commit 08c937a
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 53 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,61 @@ jobs:
run: |
cd hypercomplex
make help
Conda:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-22.04]
fail-fast: false

steps:

- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
auto-activate-base: true

- name: Install conda build suite
shell: bash -l {0}
run: conda install conda-build conda-verify numpy

- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Render version into the build recipe
shell: bash -l {0}
run: |
VERSION=$(<VERSION)
echo $VERSION
sed -i "s/{{ version }}/$VERSION/" meta.yaml
cat meta.yaml
- name: Build Anaconda Package
shell: bash -l {0}
run: conda build . -c conda-forge

- name: Install the Package
shell: bash -l {0}
run: conda install -c ${CONDA_PREFIX}/conda-bld/ -c conda-forge hypercomplex --yes

- name: Compile Test Program
shell: bash -l {0}
run: g++ --std=c++17 .test/install/test.cpp -o test -lmpfr -lgmp

- name: Execute Test Program
shell: bash -l {0}
run: ./test
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,42 @@ jobs:
publish_dir: 'docs'
destination_dir: 'docs'
keep_files: true

conda:
runs-on: ubuntu-22.04

steps:

- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
auto-activate-base: true

- name: Install conda build suite
shell: bash -l {0}
run: conda install conda-build conda-verify numpy

- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Render version into the build recipe
shell: bash -l {0}
run: |
VERSION=$(<VERSION)
echo $VERSION
sed -i "s/{{ version }}/$VERSION/" meta.yaml
cat meta.yaml
- name: Build Anaconda Package
shell: bash -l {0}
run: conda build . -c conda-forge

# push to cloud
53 changes: 0 additions & 53 deletions .github/workflows/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,56 +89,3 @@ jobs:
- name: Remove Copied Library
working-directory: ${{env.lib-directory}}
run: sudo make uninstall

Conda:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-22.04]
fail-fast: false

steps:

- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
auto-activate-base: true

- name: Install conda build suite
shell: bash -l {0}
run: conda install conda-build conda-verify numpy

- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Render version into the build recipe
shell: bash -l {0}
run: |
VERSION=$(<VERSION)
echo $VERSION
sed -i "s/{{ version }}/$VERSION/" meta.yaml
cat meta.yaml
- name: Build Anaconda Package
shell: bash -l {0}
run: conda build . -c conda-forge

- name: Install the Package
shell: bash -l {0}
run: conda install -c ${CONDA_PREFIX}/conda-bld/ -c conda-forge hypercomplex --yes

- name: Compile Test Program
shell: bash -l {0}
run: g++ --std=c++17 .test/install/test.cpp -o test -lmpfr -lgmp

- name: Execute Test Program
shell: bash -l {0}
run: ./test

0 comments on commit 08c937a

Please sign in to comment.