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 c97d507 commit f7fd1c3
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/netsci_CI.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
name: netcalc
on: [ push, workflow_dispatch ]
on: [push]
jobs:
run:
runs-on: [ self-hosted ]
runs-on: [self-hosted]
container: dvcorg/cml-py3:latest
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Update linux env
run: apt-get update
- uses: mamba-org/setup-micromamba@v1
- name: Setup anaconda
uses: conda-incubator/setup-miniconda@v2
with:
micromamba-version: '1.3.1-0'
environment-file: netsci.yml
init-shell: >-
bash
powershell
cache-environment: true
post-cleanup: 'all'
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
- name: Install netcalc dependencies
run: |
conda install -c conda-forge swig boost numpy cmake pytest
conda env create -f netsci.yml
conda activate netsci
- 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
Expand Down

0 comments on commit f7fd1c3

Please sign in to comment.