Skip to content

Commit

Permalink
Try something for resinsight
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Aug 20, 2024
1 parent a524a7d commit 5d35811
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/test_resinsight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
os: [ubuntu-24.04]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -32,13 +32,13 @@ jobs:
if: steps.cache-package.outputs.cache-hit != 'true'
run: |
sudo apt update
sudo apt -y install build-essential gcc-12 g++-12 curl zip unzip tar
sudo apt -y install build-essential gcc-14 g++-14 curl zip unzip tar
sudo apt -y install qtbase5-dev qtbase5-private-dev libqt5charts5-dev libqt5svg5-dev
- name: Switch cpp compiler
if: steps.cache-package.outputs.cache-hit != 'true'
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 14
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 14
sudo update-alternatives --auto g++
sudo update-alternatives --auto gcc
- name: Clone ResInsight
Expand Down Expand Up @@ -68,17 +68,11 @@ jobs:
-DRESINSIGHT_GRPC_BUNDLE_PYTHON_MODULE=OFF \
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/${{ env.INSTALL_DIR }} \
-DRESINSIGHT_ENABLE_HDF5=OFF
make -j$( nproc ) install
make -j $( nproc ) install
- name: Package ResInsight
if: steps.cache-package.outputs.cache-hit != 'true'
run: |
tar zcf resinsight_${{ env.RESINSIGHT_VERSION }}.tar.gz ${{ env.INSTALL_DIR }}
- name: Archive ResInsight
if: steps.cache-package.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v4
with:
name: resinsight_${{ env.RESINSIGHT_VERSION }}
path: ${{ github.workspace }}/resinsight_${{ env.RESINSIGHT_VERSION }}.tar.gz
tests:
needs: build_dependencies
Expand All @@ -88,7 +82,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-22.04]
os: [ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- uses: "actions/setup-python@v5"
Expand Down

0 comments on commit 5d35811

Please sign in to comment.