Skip to content

Commit

Permalink
Merge pull request #11969 from OPM/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj authored Dec 5, 2024
2 parents e49c82c + 4d8be69 commit 28c46a4
Show file tree
Hide file tree
Showing 889 changed files with 30,426 additions and 15,569 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/AppFwkUnitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
qtver: [5.12.12, 6.5.3]
qtver: [6.5.3]
include:
- qtver: 6.5.3
build_flags: -DCEE_USE_QT6=ON -DCEE_USE_QT5=OFF
- qtver: 5.12.12
build_flags: -DCEE_USE_QT6=OFF -DCEE_USE_QT5=ON
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -57,20 +55,6 @@ jobs:
cd cmakebuild
cmake --install . --prefix ${{github.workspace}}/cmakebuild/install
- name: Run Unit Tests Qt5
if: matrix.qtver == '5.12.12'
shell: bash
run: |
cmakebuild/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests/cafPdmCore_UnitTests
cmakebuild/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests/cafPdmXml_UnitTests
cmakebuild/cafProjectDataModel/cafProjectDataModel_UnitTests/cafProjectDataModel_UnitTests
cmakebuild/cafPdmScripting/cafPdmScripting_UnitTests/cafPdmScripting_UnitTests
- name: Run Unit Tests Windows Qt5 (does not work on Linux)
if: (contains( matrix.os, 'windows') && (matrix.qtver == '5.12.12'))
shell: bash
run: cmakebuild/cafUserInterface/cafUserInterface_UnitTests/cafUserInterface_UnitTests

- name: Run Unit Tests Qt6
if: matrix.qtver == '6.5.3'
shell: bash
Expand All @@ -79,9 +63,8 @@ jobs:
cmakebuild/install/bin/cafPdmXml_UnitTests
cmakebuild/install/bin/cafProjectDataModel_UnitTests
cmakebuild/install/bin/cafPdmScripting_UnitTests
- name: Run Unit Tests Windows Qt6 (does not work on Linux)
if: (contains( matrix.os, 'windows') && (matrix.qtver == '6.5.3'))
shell: bash
run: cmakebuild/install/bin/cafUserInterface_UnitTests

28 changes: 15 additions & 13 deletions .github/workflows/ResInsightWithCache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ jobs:
publish-to-pypi: false,
vcpkg-bootstrap: bootstrap-vcpkg.bat,
vcpkg-triplet: x64-windows-release,
qt-version: 5.12.12,
qt-version: 6.6.3,
ri-unit-test-path: "ResInsight-tests",
}
- {
name: "Ubuntu 22.04 gcc",
os: ubuntu-22.04,
name: "Ubuntu 24.04 gcc",
os: ubuntu-24.04,
cc: "gcc",
cxx: "g++",
build-python-module: true,
Expand All @@ -51,7 +52,8 @@ jobs:
publish-to-pypi: true,
vcpkg-bootstrap: bootstrap-vcpkg.sh,
vcpkg-triplet: x64-linux-release,
qt-version: 5.12.12,
qt-version: 6.7.0,
ri-unit-test-path: "ResInsight-tests",
}
- {
name: "Ubuntu 22.04 clang-16",
Expand All @@ -65,7 +67,8 @@ jobs:
publish-to-pypi: false,
vcpkg-bootstrap: bootstrap-vcpkg.sh,
vcpkg-triplet: x64-linux-release,
qt-version: 5.12.12,
qt-version: 6.7.0,
ri-unit-test-path: "ResInsight-tests",
}
steps:
- name: Checkout
Expand Down Expand Up @@ -95,6 +98,8 @@ jobs:
- name: Use CMake
uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.28.0"

- name: Use MSVC (Windows)
uses: ilammy/msvc-dev-cmd@v1
Expand Down Expand Up @@ -158,11 +163,6 @@ jobs:
sudo apt-get update --option="APT::Acquire::Retries=3"
sudo apt-get install --option="APT::Acquire::Retries=3" libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev
- name: Install gcc-10
if: contains( matrix.config.cc, 'gcc')
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
- name: Install clang-16
if: contains( matrix.config.cc, 'clang')
run: |
Expand All @@ -178,7 +178,7 @@ jobs:
version: ${{ matrix.config.qt-version }}
dir: "${{ github.workspace }}/Qt/"
cache: true
modules: "qtnetworkauth"
modules: "qtnetworkauth qtcharts"

- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
Expand Down Expand Up @@ -226,7 +226,9 @@ jobs:
if: matrix.config.execute-unit-tests
shell: bash
run: |
cmakebuild/ApplicationLibCode/UnitTests/ResInsight-tests
echo "Content of unit test folder "
ls cmakebuild/${{ matrix.config.ri-unit-test-path }}
cmakebuild/${{ matrix.config.ri-unit-test-path }}
- name: (Python) Check types using mypy
if: matrix.config.build-python-module
Expand All @@ -239,7 +241,7 @@ jobs:
- name: Run pytest
if: matrix.config.execute-pytests
env:
RESINSIGHT_EXECUTABLE: ${{ runner.workspace }}/ResInsight/cmakebuild/ApplicationExeCode/ResInsight
RESINSIGHT_EXECUTABLE: ${{ runner.workspace }}/ResInsight/cmakebuild/ResInsight
run: |
cd GrpcInterface/Python
python setup.py sdist
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CMakeCache.txt
cmake_install.cmake
CPack*.cmake
CTest*.cmake
cmakebuild/
cmakebuild*/

#Unit test binaries
*_UnitTests
Expand Down Expand Up @@ -64,7 +64,7 @@ out
build
CMakeSettings.json
enc_temp_folder
CMakePresets.json
CMakeUserPresets.json

#Visual Studio Code files
.vscode
Expand Down
2 changes: 1 addition & 1 deletion .misspell-fixer.ignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
^ApplicationLibCode/ReservoirDataModel/RigWellLogLasFile.cpp:28:aswell
^ApplicationLibCode/ReservoirDataModel/Well/RigWellLogLasFile.cpp:28:aswell
^ApplicationLibCode/ReservoirDataModel/RigLasFileExporter.cpp:33:aswell
^ApplicationExeCode/Resources/EastView.svg
^ApplicationExeCode/Resources/NorthView.svg
Expand Down
Loading

0 comments on commit 28c46a4

Please sign in to comment.