Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2024.03 #11316

Merged
merged 252 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
411eda6
Update docking to latest version
jonjenssen Dec 11, 2023
ccdad6a
Update ads version number
jonjenssen Dec 11, 2023
77e5d64
Fix insufficient forward declaration
marthinsen Dec 13, 2023
1fab743
INP import updates (#10952)
jonjenssen Dec 14, 2023
293594e
Fault Reactivation: flip Y axis in local model coordinates.
jonjenssen Dec 14, 2023
f767efd
Bump version to dev-02
jonjenssen Dec 14, 2023
595766a
Fault reactivation: Add dataNodes to be used for data extraction (#10…
jonjenssen Dec 15, 2023
958587e
Disable unity build for OdbReader
magnesj Dec 15, 2023
9701866
CMake: Update/Remove old minimum version check
marthinsen Dec 14, 2023
1f1904d
Add dependency on QtSvg for project cafUserInterface
marthinsen Dec 14, 2023
e67f09a
Add completions settings to example
magnesj Dec 16, 2023
4aa5a38
Flip Y to get local coordinate element nodes in correct order for aba…
jonjenssen Dec 17, 2023
d8dbdf0
Remove obsolete code
jonjenssen Dec 17, 2023
8375b3e
Fault Reactivation: Remove unused methods.
kriben Dec 6, 2023
2ee8954
Update valueAtPosition interface.
kriben Dec 6, 2023
78942b0
Fault Reactivation: extract stress data using well log extraction.
kriben Dec 8, 2023
9e1a09b
Refactor: move fault reactivation data access to fix ownership problems.
kriben Dec 18, 2023
858c122
Use correct result name for Void ratio (#10969)
jonjenssen Dec 18, 2023
850b1a1
Support importing stress, too
jonjenssen Dec 18, 2023
d6ae818
Support older clang.
jonjenssen Dec 19, 2023
f113591
Fault Reactivation: Fix PorBar extrapolation.
kriben Dec 20, 2023
80697d3
Fault reactivation: Use same pore pressure gradient for POR and stress.
kriben Dec 20, 2023
6cc8855
Bump version to dev.06.
kriben Dec 20, 2023
e583c3a
GCC: Fix warning related to memory alignment seen on gcc11
magnesj Dec 18, 2023
054302a
Extract geometry and cell creation to reservoir builder
magnesj Dec 19, 2023
894bbbe
Add reservoir case for EM data
magnesj Dec 19, 2023
df392e3
Compute and show resistivity values
magnesj Dec 19, 2023
f677d6d
Performance: Compute depth related results in parallell
magnesj Dec 20, 2023
9b36fe4
Make result name string match more robust
magnesj Dec 20, 2023
cf453ac
Fault Reactivation: use data nodes when extracting values for INP file.
kriben Dec 20, 2023
a4db175
Make sure imported element properties goes to the selected case.
jonjenssen Dec 20, 2023
31d11f5
#10986 Set non-visible cells to zero for aggregated expressions
magnesj Dec 21, 2023
50a7665
Enable INP support without ODB libraries (#10990)
jonjenssen Jan 3, 2024
62c7007
Minor code cleanup
jonjenssen Jan 3, 2024
ffa117e
Refactor: Extract getPartIndexFromPoint to avoid duplication.
kriben Jan 3, 2024
544e697
Refactor: improve interface for finding intersecting cells.
kriben Jan 3, 2024
daae1e6
Improve fault reactivation file names (#11005)
jonjenssen Jan 5, 2024
956e53a
#10826 Fault Reactivation: improve pore pressure eclipse extraction.
kriben Jan 3, 2024
9ac518f
Bump dev version to 07
jonjenssen Jan 5, 2024
ff6472c
Update to clang-16
magnesj Jan 5, 2024
50234f0
Add missing includes
magnesj Jan 5, 2024
e23560d
Use setContentsMargins instead of setMargin
magnesj Jan 5, 2024
2c02d61
Use QRegularExpression instead of QRegExp
magnesj Jan 7, 2024
870bcf0
Test for Qt5 when using obsolete OpenGL functions
magnesj Jan 7, 2024
d38ebf6
Check for Qt5 when using removed class QDesktopWidget
magnesj Jan 7, 2024
b561656
Support use of of std::pair<T, QString>
magnesj Jan 7, 2024
f6be434
Remove Qt version checking for old Qt version
magnesj Jan 7, 2024
02ad40b
Fixes by clang-tidy
magnesj Jan 8, 2024
b38e9de
Minor changes to exported INP file based on feedback and testing
jonjenssen Jan 8, 2024
af3cfc9
Add missing include
jonjenssen Jan 8, 2024
33c24a2
Fix crash when deleting case.
kriben Jan 5, 2024
45c32a4
Refactor: Extract methods for creating well paths and extractors.
kriben Jan 5, 2024
f81dcbd
Minor refactor: extract method extracting values.
kriben Jan 5, 2024
adf52ed
#10827 Fault reactivation: extract temperatures using well log.
kriben Jan 5, 2024
118d88b
Create singleton before displaying window
magnesj Jan 8, 2024
d1b3445
gcc10: add missing include
magnesj Jan 7, 2024
8424c77
Remove norwegian characters
magnesj Jan 7, 2024
edf44cb
Prepare CMake to support both Qt5 andf Qt6
magnesj Jan 9, 2024
ce9a65e
VizFwk housekeeping (#11026)
sigurdp Jan 9, 2024
6d225a9
Fault Reactivation: Add minimum cell height limit (#11036)
jonjenssen Jan 10, 2024
d03477a
Fault Reactivation: Use correct result variable when extracting tempe…
kriben Jan 10, 2024
bd3c5bb
Bump version to dev.08.
kriben Jan 10, 2024
ca119af
Update openzgy
magnesj Jan 11, 2024
8db29e0
Add polyline filter support (#11048)
jonjenssen Jan 12, 2024
58815ae
Update opm-common
magnesj Jan 11, 2024
fa94aa0
opm-common: Simplify import of time step data
magnesj Jan 11, 2024
f907c6b
#11024 Allow grid calculator expressions with no input cases
magnesj Jan 8, 2024
d065c8e
#11042 octave: Remove deprecated error_state object
magnesj Jan 11, 2024
3f3ced5
#11042 octave: Adjustments for updated API in version 7
magnesj Jan 11, 2024
cfff6ac
#11053 Limit number of time step to 1 for static result
magnesj Jan 12, 2024
9dfe155
octave: Revert use of auto for octave version before 7
magnesj Jan 12, 2024
340c138
Fixes by clang-tidy
magnesj Jan 13, 2024
6eb8f75
Bump version to dev.09
magnesj Jan 15, 2024
caa42a8
Fixes by cmake-format
magnesj Jan 15, 2024
5c09674
Optionally log messages to file (#11059)
magnesj Jan 15, 2024
35cc212
Log error message instead of displaying a dialog
magnesj Jan 16, 2024
a9598fb
Define result address for to be used for non visible cells
magnesj Jan 16, 2024
028567d
Bump version
magnesj Jan 17, 2024
14faf60
Improve error message for ResInsight exe and rips version mismatch
magnesj Jan 17, 2024
cb74bf2
Refactor: create stress accessor base class.
kriben Jan 10, 2024
defde0f
Fault Reactivation: Add 'None' as GeoMech model option.
kriben Jan 10, 2024
bd08561
#11034 Fault Reactivation: integrate vertical stress from eclipse grid.
kriben Jan 10, 2024
926a9ac
Fault Reactivation: Export stress with negative sign.
kriben Jan 17, 2024
a48faeb
#11034 Use water density from model.
kriben Jan 18, 2024
251952e
Fault reactivation updates (#11079)
jonjenssen Jan 19, 2024
0c7a8ad
Fix regression introduced in a9598f
magnesj Jan 19, 2024
df083a8
Add Memory Report dialog
magnesj Jan 18, 2024
33f18a7
Show numbers with space as thousand separator
magnesj Jan 19, 2024
12ca418
Add fixes to handle missing data correctly
magnesj Jan 19, 2024
50ef5d9
Import surfaces with xyz as extension
magnesj Jan 19, 2024
f864ab0
Fixes by clang-tidy
magnesj Jan 20, 2024
502f7d4
Update opm-common
magnesj Jan 19, 2024
018e911
Read date information directly from restart file
magnesj Jan 18, 2024
e1007ca
Performance: Clear file reader cache after data is read
magnesj Jan 18, 2024
d618389
Grid calculations: Free memory after data has been read
magnesj Jan 18, 2024
e2e861e
Select none, all cases or a grid case group to apply a calculation
magnesj Jan 19, 2024
6260995
#11092 Fix import of time since simulation start
magnesj Jan 22, 2024
210f037
Make INP reader a bit more generic, do not require steps defined in f…
jonjenssen Jan 22, 2024
80fdd1d
Return pair of vectors and rename
magnesj Jan 20, 2024
663c3f3
Use the top and bottom layer of active cells to compute the geometry …
magnesj Jan 22, 2024
833a0e8
Performance: Cellcount functions are used in many loops, and must be …
magnesj Jan 21, 2024
a090992
Refactor use of grid dimensions
magnesj Jan 21, 2024
4f2d13f
Bump to version dev.13
magnesj Jan 22, 2024
1290aac
Set correct version number to 2023.12.1-dev.11
magnesj Jan 22, 2024
b1420da
Update opm-common
magnesj Jan 22, 2024
8a3a3ae
Fix crash when using grid case group
magnesj Jan 22, 2024
3388f60
Bump to dev.12
magnesj Jan 22, 2024
8831a8d
Update stress source selection
jonjenssen Jan 22, 2024
576f15d
Bump to version dev-13
jonjenssen Jan 22, 2024
10a579f
Add support in VizFwk for using QOpenGLWidget derived view widget (#1…
sigurdp Jan 23, 2024
cd0a56c
Fault Reactivation: grid improvements (#11105)
jonjenssen Jan 24, 2024
6922ba2
Improve reload and replace of cases
magnesj Jan 25, 2024
de58f3d
Support RESINSIGHT_INSTALL_RPATH as CMake build parameter
magnesj Jan 26, 2024
c0921a1
Fixes by cmake-format
magnesj Jan 26, 2024
c623448
Python code linting changes detected by black
magnesj Jan 26, 2024
85672f5
#10136 Reset zoom by double-click in 3D view
magnesj Jan 24, 2024
7d601ac
#11109 Improve visualization of MSW with valve branches
magnesj Jan 25, 2024
ad34bbf
Use latest version of actions
magnesj Jan 26, 2024
2864ac7
Extend reservoir element set to active cells in under/overburden
jonjenssen Jan 26, 2024
2c0ebfd
Add node set for fault zone boundary nodes
jonjenssen Jan 26, 2024
9738e69
Add delete of object from Python
magnesj Jan 29, 2024
6805c95
#10948 Make sure variants of GLIT is put in correct category
magnesj Jan 29, 2024
bd644da
Bump version to dev.14
magnesj Jan 29, 2024
e83b2e9
Add and use clang-tidy for GrpcInterface
magnesj Jan 29, 2024
a8c719b
#10663 WBS Plot: Import well log from CSV file.
kriben Oct 2, 2023
492b382
Bump version to dev.15
kriben Jan 29, 2024
0ff5365
Move run_Glsl2Include into VizFwk folder on Windows
magnesj Jan 29, 2024
91fdd7e
#11132 Guard crash when accessing simulation well data
magnesj Jan 29, 2024
d0b5c8d
#11134 Export completions: Call ensureReservoirCaseIsOpen before export
magnesj Jan 29, 2024
d102549
#11140 Fix filtering based on text in tree selection editor
magnesj Jan 30, 2024
2e7afeb
#11094 Make sure no window is maximized before tiling
magnesj Jan 30, 2024
111eeb6
#11144 Make sure multi select of wells and a calculated curve works a…
magnesj Jan 30, 2024
5151717
#11088 Use non-optimized version for old projects to compute active c…
magnesj Jan 31, 2024
661840f
Always compute bounding box of main grid and use OpenMP
magnesj Jan 31, 2024
d661ed4
Fix computation of bounding box main grid
magnesj Feb 1, 2024
4ce449e
Fix fault reactivation grid generation crash
jonjenssen Feb 2, 2024
9fea085
Fault reactivation: Fix temperature extraction.
kriben Jan 31, 2024
89f90ee
Fault reactivation: use values from GeoMech grid for stress.
kriben Jan 31, 2024
e8e376d
Fault reactivation: use values from Eclipse grid for stress.
kriben Jan 31, 2024
710b91d
Bump version to dev.16
kriben Feb 2, 2024
06766b3
Add option to Preferences to flush file loggers when a signal is trig…
magnesj Jan 31, 2024
57cb3c0
#11141 Improve curve and plot title for calculated summary curves
magnesj Jan 31, 2024
5c92cf1
#11077 Create result values for formations only when required
magnesj Jan 31, 2024
e2e441c
Add RigEclipseCaseDataTools
magnesj Feb 1, 2024
4dd43a1
#11147: Initialize well allocation plot with better data
magnesj Feb 2, 2024
883622c
#11148: Set default name to Accumulated Flow Chart
magnesj Feb 2, 2024
4ee9af9
Well Allocation: Show legend below pie chart
magnesj Feb 2, 2024
66df2fa
Make sure cumulative plot has some spacing to the right
magnesj Feb 2, 2024
e33d18c
Hide scrollbar if the visible range covers the complete available range
magnesj Feb 2, 2024
c456e96
Bump version to dev.17
magnesj Feb 2, 2024
4c77090
Add missing Qt component to silence CMake warnings
marthinsen Feb 3, 2024
01a082f
#11161 Change default tree visibility state for childField and childA…
magnesj Feb 3, 2024
ce513be
Remove all use of .uiCapability()->setUiTreeHidden( true );
magnesj Feb 2, 2024
2250084
Always link shader program if OglId is zero
magnesj Feb 6, 2024
6ce9af1
Disconnect comparison view in destructor of RimEclipseResultCase
magnesj Jan 24, 2024
8e13d6c
Use modern OpenGL Qt widget
magnesj Feb 7, 2024
163d54f
Comparison View: Fix wrong horizontal location when dragging starts
magnesj Jan 23, 2024
1703f33
Set attribute to share OpenGL contexts
magnesj Jan 24, 2024
4db04c7
Add missing include seen on VS 17.8.0
magnesj Feb 7, 2024
f494813
Bump version to dev.18
magnesj Feb 7, 2024
5037473
Fault Reactivation: Use computed pore pressure for over and underburden.
kriben Feb 5, 2024
5a3894b
Fault reactivation: Improve POR-Bar extraction.
kriben Feb 5, 2024
5391179
Add separate target for unit tests for easier test access. Remove uni…
jonjenssen Feb 11, 2024
fa8d8e3
CMake adjustments after unit test refactoring
magnesj Feb 12, 2024
336dc57
Fault Reactivation: Update element sets (#11191)
jonjenssen Feb 12, 2024
0fd4ec6
Add option to flip node order for both parts
jonjenssen Feb 13, 2024
7c317cf
Bump to version dev 19
jonjenssen Feb 13, 2024
8fe385a
Create binary artifacts for Linux
magnesj Feb 13, 2024
8575356
WBS Plot: Improve initial placement of curve, and add better default …
kriben Feb 14, 2024
d8b1e64
Fault Reactivation: Improve temperature data access.
kriben Feb 14, 2024
41ed462
Bump to version dev 20
kriben Feb 14, 2024
fc2df17
Fix variable name
jonjenssen Feb 14, 2024
a4c75ba
Merge branch 'dev' of https://github.com/OPM/ResInsight into dev
jonjenssen Feb 14, 2024
44617ae
#11069 RFT segment topology
magnesj Feb 14, 2024
e94ac51
Optionally install python modules defined in dev-requirements.txt
magnesj Feb 15, 2024
5cfabbb
Use correct qt version check for SkipEmptyParts
marthinsen Feb 12, 2024
5162ae4
Fix data access crash when no temp is available
jonjenssen Feb 15, 2024
185f62d
Bump to version dev 21
jonjenssen Feb 15, 2024
33dcd55
#11206 Guard assert when picking in a zoomed scene
magnesj Feb 16, 2024
d0a9b7c
Modify the the background color of table using stylesheets
magnesj Feb 8, 2024
dc1e675
Move findActiveTargetsAroundInsertionPoint to base class
magnesj Feb 8, 2024
573a8f7
Update bounding box of parts in polyline part manager
magnesj Feb 8, 2024
5fdf30d
Add polygon classes
magnesj Feb 12, 2024
1689621
Cleanup obsolete code
magnesj Feb 12, 2024
8fe8242
Display polygon project items if RiaApplication::enableDevelopmentFea…
magnesj Feb 16, 2024
9ac4b38
Import faults when using omp common file reader, too
jonjenssen Feb 19, 2024
055c0d4
#11198 Fix result info for POR-Bar normalized by hydrostatic pressure.
kriben Feb 19, 2024
a3d520e
Use project polygons from polygon cell filter
magnesj Feb 22, 2024
6fe997b
Add and use caf::PdmUiPushButtonEditor::configureEditorLabelHidden
magnesj Feb 23, 2024
09151ec
Use S5 for top, fault and base surfaces.
jonjenssen Feb 23, 2024
28d281e
Use polygon as data source for intersection
magnesj Feb 25, 2024
672fbe1
Improve summary calculation performance
magnesj Feb 26, 2024
a0ecdf4
Show git SHA for command line parameter --version
magnesj Feb 27, 2024
86c33c1
Fault activation: node adjustments along fault (#11235)
jonjenssen Feb 27, 2024
be1a274
Use consistent scaling factor for gas rates in field units
magnesj Feb 27, 2024
04fa268
Bump to version dev-23
jonjenssen Feb 28, 2024
a4202ec
Merge branch 'dev' of https://github.com/OPM/ResInsight into dev
jonjenssen Feb 28, 2024
b33d117
Show measurement in static geomech view, too
jonjenssen Feb 28, 2024
2f3a20c
WBS: Fix crash when importing CSV into existing WBS.
kriben Feb 28, 2024
8ea017d
WBS: Make PP data from CSV more pink.
kriben Feb 28, 2024
b0ade5d
WBS Plot: Fix disappearing curve names for disabled curves.
kriben Feb 28, 2024
04b14cf
WBS: Compute and show SH_MK_* only in reservoir (not shale).
kriben Feb 28, 2024
818c5c0
Add polygon file readers and make sure UI items are in sync
magnesj Mar 1, 2024
5d640b9
Fixes by clang-tidy
magnesj Mar 2, 2024
5217ab5
Use signal to notify listeners when coordinates of a polygon changes
magnesj Mar 4, 2024
3689ccc
Add operations on polygon : Duplicate, exportCsv, exportPol and simplify
magnesj Mar 4, 2024
1217236
#11248 Remove caching of simulation well coordinates to avoid state h…
magnesj Mar 4, 2024
b8f9bea
WBS: Compute and show FG_MK_* only in reservoir (not shale).
kriben Mar 4, 2024
a2fa2a0
WBS: Avoid empty text in legends on reload.
kriben Mar 4, 2024
bcc4f7c
Add more decimals to node coordinates to improve accuracy
jonjenssen Mar 4, 2024
11c7ef7
Bump to version dev 24
jonjenssen Mar 4, 2024
406cd08
Use local coordinates in generated model by default
jonjenssen Mar 5, 2024
9f96cb9
#11258 Grid Calculation: Unintended release of result data memory
magnesj Mar 5, 2024
ea27e95
Prepare building with Qt6
marthinsen Mar 6, 2024
bfda651
Cleanup includes
magnesj Mar 7, 2024
2386ad8
Generate model based on an origin in the fault to improve calculation…
jonjenssen Mar 8, 2024
fb5758a
Support both AND and OR operations when combining range and index fil…
jonjenssen Mar 11, 2024
f411b5f
Do not crash if no valid points are found when importing a surface .d…
jonjenssen Mar 12, 2024
cb1e062
Exported coordinate fix (#11283)
jonjenssen Mar 12, 2024
b9c5ff8
Fixes by clang-tidy
magnesj Mar 13, 2024
76df7e8
Remove unused function
magnesj Mar 12, 2024
b595487
#11285 GRPC: fix high CPU usage in console application
kriben Mar 13, 2024
e014bfd
Fix incorrect line breaks.
kriben Mar 15, 2024
5152136
Refactor: better isnan in assert, and reduce variable lifetime.
kriben Mar 15, 2024
6a5c6ee
Transmissibility equations: guard against NaN in very small intersect…
kriben Mar 15, 2024
63defd0
GHA: Update to peter-evans/create-pull-request@v6
magnesj Mar 17, 2024
a880a42
Summary performance improvements
magnesj Mar 18, 2024
853d68d
Bump version to 2024.03.0-RC_01
magnesj Mar 18, 2024
2001c94
Polygon updates (#11298)
jonjenssen Mar 18, 2024
1a21d2e
Fix incorrect position for data nodes.
jonjenssen Mar 18, 2024
d1d987f
Bump version to 2024.03.0-RC_02
magnesj Mar 18, 2024
d4f97d8
Avoid hardcoded requirements for headers of RFT pressure files
magnesj Mar 19, 2024
a248be1
Always rebuild meta data for summary cases
magnesj Mar 19, 2024
84875be
Fix source stepping on calculated vectors
magnesj Mar 19, 2024
691b73d
Bump version to 2024.03.0-RC_03
magnesj Mar 19, 2024
785871c
Add realization filtering based on text string
magnesj Mar 21, 2024
2e456a6
Add font size to text content frame
magnesj Mar 19, 2024
7190d78
Grid Case Statistics: Show well data from first realization
magnesj Mar 14, 2024
672b7a2
Make sure all editors are updated after source stepping
magnesj Mar 19, 2024
d95c4c7
Fix regression causing hidden objects to be visible
magnesj Mar 20, 2024
c02f32d
Bump version to 2024.03.0-RC_04
magnesj Mar 21, 2024
c1b44e0
Add license info for spdlog
magnesj Mar 21, 2024
78759fe
Update GUI editor if a new summary vector is set created
magnesj Mar 21, 2024
61254ba
Summary: Set default value true for display of sub nodes
magnesj Mar 21, 2024
eaa96a0
Fix detection of ROFF file type
magnesj Mar 22, 2024
5d2ac1f
Add object and keywords for 2024.03
magnesj Mar 22, 2024
cf4cf56
Bump version to 2024.03.0-RC_04
magnesj Mar 22, 2024
7e60a41
Merge pull request #11315 from OPM/main
magnesj Mar 25, 2024
b57767d
Add feature to set parent well
magnesj Mar 25, 2024
e069e13
Bump version to 2024.03.0
magnesj Mar 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
75 changes: 40 additions & 35 deletions .github/workflows/AppFwkUnitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
qtver: [5.12.12, 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@v3
uses: actions/checkout@v4

- name: Set apt mirror
# see https://github.com/actions/runner-images/issues/7048
Expand All @@ -22,61 +28,60 @@ jobs:
sudo sed -i 's/http:\/\/azure.archive.ubuntu.com\/ubuntu\//mirror+file:\/etc\/apt\/mirrors.txt/' /etc/apt/sources.list

- name: Install Linux dependencies
if: ${{contains( matrix.os, 'ubuntu') }}
if: contains(matrix.os, 'ubuntu')
run: |
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

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 5.12.12
modules: qtscript
version: ${{ matrix.qtver }}
dir: "${{ github.workspace }}/Qt/"
cache: true
cache-key-prefix: ${{ matrix.qtver }}-${{ matrix.os }}

- name: Get CMake and Ninja
uses: lukka/get-cmake@latest

- name: Use MSVC (Windows)
uses: ilammy/msvc-dev-cmd@v1

- name: Configure
shell: cmake -P {0}
- name: Configure and build
run: |
execute_process(
COMMAND cmake
-S Fwk
-B cmakebuild
-G Ninja
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
message(FATAL_ERROR "Bad exit status")
endif()

- name: Build
shell: cmake -P {0}
cmake -S Fwk/AppFwk ${{matrix.build_flags}} -B cmakebuild -G Ninja
cmake --build cmakebuild

- name: Install
run: |
set(ENV{NINJA_STATUS} "[%f/%t %o/sec] ")
execute_process(
COMMAND cmake --build cmakebuild
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
message(FATAL_ERROR "Bad exit status")
endif()
cd cmakebuild
cmake --install . --prefix ${{github.workspace}}/cmakebuild/install

- name: Run Unit Tests
- name: Run Unit Tests Qt5
if: matrix.qtver == '5.12.12'
shell: bash
run: |
cmakebuild/AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests/cafPdmCore_UnitTests
cmakebuild/AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests/cafPdmXml_UnitTests
cmakebuild/AppFwk/cafProjectDataModel/cafProjectDataModel_UnitTests/cafProjectDataModel_UnitTests
cmakebuild/AppFwk/cafPdmScripting/cafPdmScripting_UnitTests/cafPdmScripting_UnitTests
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 (does not work on Linux)
if: contains( matrix.os, 'windows')
- 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
run: |
cmakebuild/AppFwk/cafUserInterface/cafUserInterface_UnitTests/cafUserInterface_UnitTests
cmakebuild/install/bin/cafPdmCore_UnitTests
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

59 changes: 38 additions & 21 deletions .github/workflows/ResInsightWithCache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,41 +33,44 @@ jobs:
vcpkg-triplet: x64-windows,
build-python-module: true,
execute-unit-tests: true,
execute-pytests: true,
unity-build: true,
publish-to-pypi: false,
}
- {
name: "Ubuntu Latest gcc",
name: "Ubuntu 20.04 gcc",
os: ubuntu-20.04,
cc: "gcc",
cxx: "g++",
vcpkg-response-file: vcpkg_x64-linux.txt,
vcpkg-triplet: x64-linux,
build-python-module: true,
execute-unit-tests: true,
execute-pytests: true,
unity-build: false,
publish-to-pypi: true,
}
- {
name: "Ubuntu Latest clang",
os: ubuntu-20.04,
cc: "clang",
cxx: "clang++",
name: "Ubuntu 22.04 clang-16",
os: ubuntu-22.04,
cc: "clang-16",
cxx: "clang++-16",
vcpkg-response-file: vcpkg_x64-linux.txt,
vcpkg-triplet: x64-linux,
build-python-module: true,
execute-unit-tests: true,
execute-pytests: false,
unity-build: false,
publish-to-pypi: false,
}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Display Python version
Expand All @@ -84,7 +87,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r GrpcInterface/Python/requirements.txt
pip install -r GrpcInterface/Python/dev-requirements.txt

- name: Use CMake
uses: lukka/get-cmake@latest
Expand Down Expand Up @@ -116,7 +119,7 @@ jobs:
endif()

- name: Get current time
uses: josStorer/get-current-time@v2.0.2
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD
Expand All @@ -126,7 +129,7 @@ jobs:

- name: Cache Buildcache
id: cache-buildcache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.BUILDCACHE_DIR }}
key: ${{ matrix.config.os }}-${{ matrix.config.cc }}-cache-v03-${{ steps.current-time.outputs.formattedTime }}
Expand All @@ -139,19 +142,32 @@ jobs:

- name: Set apt mirror
# see https://github.com/actions/runner-images/issues/7048
if: ${{contains( matrix.config.os, 'ubuntu') }}
if: contains( matrix.config.os, 'ubuntu')
run: |
# make sure there is a `\t` between URL and `priority:*` attributes
printf 'http://azure.archive.ubuntu.com/ubuntu priority:1\n' | sudo tee /etc/apt/mirrors.txt
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
sudo sed -i 's/http:\/\/azure.archive.ubuntu.com\/ubuntu\//mirror+file:\/etc\/apt\/mirrors.txt/' /etc/apt/sources.list

- name: Install Linux dependencies
if: ${{contains( matrix.config.os, 'ubuntu') }}
if: contains( matrix.config.os, 'ubuntu')
run: |
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: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
sudo apt-get upgrade
wget https://apt.llvm.org/llvm.sh
sudo chmod +x llvm.sh
sudo ./llvm.sh 16 all

- name: Install Qt
uses: jurplel/install-qt-action@v3
Expand All @@ -170,14 +186,14 @@ jobs:
appendedCacheKey: ${{ matrix.config.os }}-${{ matrix.config.cxx }}-cache-key-v2

- name: Cache dynamic version of OpenSSL (Linux)
if: ${{contains( matrix.config.os, 'ubuntu_disabled') }}
uses: actions/cache@v3
if: contains( matrix.config.os, 'ubuntu_disabled')
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/ThirdParty/vcpkg/installed/x64-linux-dynamic
key: ${{ matrix.config.os }}-vcpkg-x64-linux-dynamic_v05

- name: Install dynamic version of OpenSSL (Linux)
if: ${{contains( matrix.config.os, 'ubuntu') }}
if: contains( matrix.config.os, 'ubuntu')
run: |
$VCPKG_ROOT/vcpkg install --overlay-triplets=${{ github.workspace }}/ThirdParty/vcpkg-custom-triplets --triplet x64-linux-dynamic openssl

Expand All @@ -194,6 +210,7 @@ jobs:
-D CMAKE_BUILD_TYPE=$ENV{BUILD_TYPE}
-D CMAKE_INSTALL_PREFIX=cmakebuild/install
-D RESINSIGHT_BUNDLE_OPENSSL=true
-D RESINSIGHT_QT5_BUNDLE_LIBRARIES=true
-D RESINSIGHT_INCLUDE_APPLICATION_UNIT_TESTS=true
-D RESINSIGHT_TREAT_WARNINGS_AS_ERRORS=true
-D RESINSIGHT_ENABLE_PRECOMPILED_HEADERS=false
Expand Down Expand Up @@ -224,11 +241,12 @@ jobs:

- name: Stats for buildcache
run: ${{ github.workspace }}/buildcache/bin/buildcache -s

- name: Run Unit Tests
if: matrix.config.execute-unit-tests
shell: bash
run: |
cmakebuild/ApplicationExeCode/ResInsight --unittest
cmakebuild/ApplicationLibCode/UnitTests/ResInsight-tests

- name: (Python) Check types using mypy
if: matrix.config.build-python-module
Expand All @@ -239,7 +257,7 @@ jobs:
${{ steps.python-path.outputs.PYTHON_EXECUTABLE }} -m mypy *.py generated/generated_classes.py

- name: Run pytest
if: matrix.config.build-python-module
if: matrix.config.execute-pytests
env:
RESINSIGHT_EXECUTABLE: ${{ runner.workspace }}/ResInsight/cmakebuild/ApplicationExeCode/ResInsight
run: |
Expand All @@ -250,14 +268,13 @@ jobs:

- name: Upload python distribution folder
if: matrix.config.publish-to-pypi
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-distribution
path: GrpcInterface/Python/dist

- name: Upload Windows install artifact
if: ${{contains( matrix.config.os, 'windows') }}
uses: actions/upload-artifact@v3
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ResInsight-${{ matrix.config.name }}
path: ${{ runner.workspace }}/ResInsight/cmakebuild/install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
sudo apt-get update
sudo apt-get install --option="APT::Acquire::Retries=3" clang-format-15
clang-format-15 --version
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check format - ApplicationLibCode
run: |
cd ApplicationLibCode
Expand All @@ -36,7 +36,7 @@ jobs:
cd Fwk/AppFwk
find -name '*.h' -o -name '*.cpp' -o -name '*.inl' | grep -v gtest | xargs clang-format-15 -i
git diff
- uses: peter-evans/create-pull-request@v5
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Fixes by clang-format"
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -69,11 +69,14 @@ jobs:
run: |
cd build
run-clang-tidy-15 -config-file ../ApplicationLibCode/.clang-tidy -fix files ApplicationLibCode
run-clang-tidy-15 -config-file ../GrpcInterface/.clang-tidy -fix files GrpcInterface
- name: Run clang-format after clang-tidy
run: |
cd ApplicationLibCode
find -name '*.h' -o -name '*.cpp' -o -name '*.inl' | xargs clang-format-15 -i
- uses: peter-evans/create-pull-request@v5
cd ../GrpcInterface
find -name '*.h' -o -name '*.cpp' -o -name '*.inl' | xargs clang-format-15 -i
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Fixes by clang-tidy"
Expand All @@ -82,3 +85,4 @@ jobs:
branch-suffix: random
add-paths: |
ApplicationLibCode/*
GrpcInterface/*
4 changes: 2 additions & 2 deletions .github/workflows/cmake-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Install cmakelang for cmake-format
run: |
python3 -m pip install --user cmakelang
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check format - ApplicationLibCode
run: |
~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i CMakeLists.txt
Expand All @@ -28,7 +28,7 @@ jobs:
cd ..

git diff
- uses: peter-evans/create-pull-request@v5
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Fixes by cmake-format"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

org_name = "OPM"
repo_name = "ResInsight"
keep_artifacts = 20
keep_artifacts = 100

def get_all_artifacts(repo_name: str, headers: dict) -> []:
amount_items_per_page = 50
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/delete_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Remove old artifacts
Expand Down
Loading