Skip to content

Commit

Permalink
[CI] Updated workflows for TRIQS 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
krivenko committed Sep 8, 2023
1 parent 636e4fb commit 4b89043
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,25 @@ jobs:
strategy:
matrix:
include:
- {os: ubuntu-20.04, cc: gcc-10, cxx: g++-10}
- {os: ubuntu-20.04, cc: clang-13, cxx: clang++-13}
- {os: ubuntu-22.04, cc: gcc-12, cxx: g++-12}
- {os: ubuntu-22.04, cc: clang-15, cxx: clang++-15}

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Update apt-get cache
run: sudo apt-get update

- name: Install Ubuntu dependencies
run: >
sudo apt-get install lsb-release wget software-properties-common &&
wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh &&
sudo chmod +x /tmp/llvm.sh && sudo /tmp/llvm.sh 13 &&
sudo apt-get install
g++-10
clang-13
libclang-13-dev
libgfortran4
g++-12
clang-15
libomp-15-dev
libgfortran5
gfortran
openmpi-bin
openmpi-common
Expand All @@ -50,19 +48,27 @@ jobs:
hdf5-tools
libhdf5-dev
python3-dev
python3-clang-13
python3-clang-15
python3-numpy
python3-scipy
python3-matplotlib
ipython3
python3-mpi4py
python3-mako
- name: Cache Boost (a C++20 compatible version)
id: cache-boost
uses: actions/cache@v3
with:
path: ~/boost
key: boost-1.82

- name: Download Boost (a C++20 compatible version)
if: ${{ steps.cache-boost.outputs.cache-hit != 'true' }}
run: |
wget -q https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.tar.bz2
tar -xf boost_1_78_0.tar.bz2
mv boost_1_78_0 boost
wget -q https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.tar.bz2
tar -xf boost_1_82_0.tar.bz2
mv boost_1_82_0 $HOME/boost
- name: Install Sphinx and related packages
if: startsWith(matrix.cxx, 'clang')
Expand All @@ -75,7 +81,7 @@ jobs:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: |
git clone https://github.com/TRIQS/triqs --branch 3.1.x
git clone https://github.com/TRIQS/triqs --branch 3.2.x
mkdir triqs/build && pushd triqs/build
cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
docker:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:

- name: Resolve git tag name
Expand All @@ -27,7 +27,7 @@ jobs:

- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
tags: |
Expand Down

0 comments on commit 4b89043

Please sign in to comment.