Skip to content

Commit

Permalink
feat: enabled self-hosted CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
amstokely committed Nov 27, 2023
1 parent 316f47e commit 5e5bb93
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/netsci_CI.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
name: netcalc
on: [push, workflow_dispatch]
on: [ push, workflow_dispatch ]
jobs:
run:
runs-on: [self-hosted]
runs-on: [ self-hosted ]
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Setup anaconda
uses: conda-incubator/setup-miniconda@v2
- uses: mamba-org/setup-micromamba@v1
with:
miniconda-version: "latest"
channels: bioconda, conda-forge, defaults
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
auto-update-conda: true
auto-activate-base: true
micromamba-version: '1.3.1-0'
environment-file: netsci.yml
init-shell: >-
bash
powershell
cache-environment: true
post-cleanup: 'all'
- name: Install netcalc dependencies
run: |
conda install -c conda-forge swig boost numpy cmake pytest
conda install -c conda-forge swig boost numpy cmake pytest
- name: build
run: |
mkdir build
cd build
cmake .. -DCONDA_DIR=$CONDA_PREFIX -DCUDA_ARCHITECTURE=52
cmake --build . -j
make python
mkdir build
cd build
cmake .. -DCONDA_DIR=$CONDA_PREFIX -DCUDA_ARCHITECTURE=52
cmake --build . -j
make python
- name: ctest
run: |
cd build
ctest
- name: pytest
run: |
pytest
pytest
11 changes: 11 additions & 0 deletions netsci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: netsci
channels:
- conda-forge anaconda
dependencies:
- python=3.10
- anaconda::cmake
- conda-forge::numpy
- conda-forge::doxygen
- conda-forge::boost
- conda-forge::swig
- conda-forge::pytest

0 comments on commit 5e5bb93

Please sign in to comment.