Skip to content

Commit

Permalink
Merge pull request #38 from CosmoStat/pycs_final_build
Browse files Browse the repository at this point in the history
Sparse2D version 3.0.0
  • Loading branch information
jstarck authored Oct 25, 2022
2 parents 9008edb + 0701c74 commit b4b9b53
Show file tree
Hide file tree
Showing 878 changed files with 240,453 additions and 12,770 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
Dockerfile
20 changes: 18 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,36 @@ jobs:
if: runner.os == 'macOS'
run: |
brew tap sfarrens/sf
brew install bigmac cfitsio fftw libomp
brew install bigmac
brew install catch2 cfitsio fftw libomp armadillo gsl healpix pybind11 python
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libcfitsio-dev
sudo apt-get install -y libfftw3-dev
sudo apt-get install -y libarmadillo-dev
sudo apt-get install -y libgsl-dev
sudo apt-get install -y libsharp-dev
sudo apt-get install -y libhealpix-cxx-dev
sudo apt-get install -y healpy-data
sudo apt-get install -y python3
sudo apt-get install -y python3-pip
python3 -m pip install pybind11
pip show pybind11
wget https://github.com/catchorg/Catch2/archive/refs/tags/v3.1.0.tar.gz
tar -xvf v3.1.0.tar.gz
cd Catch2-3.1.0
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install
cd
- name: Compile Sparse2D Binaries
run: |
mkdir build
cd build
cmake .. -DUSE_FFTW=ON -DBUILD_MSVST=ON
cmake .. --log-level=VERBOSE
make
- name: Run Unit Tests
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create and publish a Docker image

on:
push:
branches: ['master']

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit b4b9b53

Please sign in to comment.