Skip to content

Commit 5295937

Browse files
committed
Build and test both Jammy and Noble
Noble OMP instead of Jammy OMP
1 parent 0ae2793 commit 5295937

File tree

5 files changed

+50
-34
lines changed

5 files changed

+50
-34
lines changed

.github/workflows/ubuntu.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
name: [ "Build Noble" ]
20+
name: [ "Build Noble", "Build Noble OMP", "Build Jammy" ]
2121
include:
2222

2323
- name: "Build Noble"
2424
release: noble
2525

26+
- name: "Build Noble OMP"
27+
release: noble-omp
28+
29+
- name: "Build Jammy"
30+
release: jammy
31+
2632
steps:
2733

2834
- name: Check Out Repo
@@ -53,7 +59,7 @@ jobs:
5359
strategy:
5460
fail-fast: false
5561
matrix:
56-
name: [ "Unit Noble", "Short Noble", "Medium Noble" ]
62+
name: [ "Unit Noble", "Short Noble", "Medium Noble", "Short Jammy" ]
5763
include:
5864

5965
- name: "Unit Noble"
@@ -71,10 +77,10 @@ jobs:
7177
command: "make THREADS=2 mediumtest"
7278
output: "test_results_medium.xml"
7379

74-
- name: "Unit Noble"
75-
release: noble
76-
command: "make unittest"
77-
output: "test_results_unittests.xml"
80+
- name: "Short Jammy"
81+
release: jammy
82+
command: "make THREADS=2 test"
83+
output: "test_results.xml"
7884

7985
steps:
8086

docker/actions/Dockerfile.actions.jammy-omp

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM fluidity/baseimages:noble
2+
3+
USER root
4+
5+
RUN apt-get -y update && \
6+
apt-get -y dist-upgrade && \
7+
rm -rf /var/cache/apt/archives && \
8+
rm -rf /var/lib/apt/lists
9+
10+
RUN adduser fluidity sudo
11+
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
12+
13+
COPY . /home/fluidity
14+
RUN chown -R fluidity /home/fluidity
15+
16+
USER fluidity
17+
WORKDIR /home/fluidity
18+
19+
RUN ./configure --enable-2d-adaptivity --enable-omp
20+
# NOTE: running "make makefiles" is only needed for
21+
# developers that have changed any of the module use statements
22+
# For all other users, this step is NOT needed.
23+
# "make makefiles" regenerates the */Makefile.dependencies
24+
# which should already be committed to the repo. We do this here
25+
# only to check whether the regenerated files have changed from
26+
# the committed version, in which case the "test -z" and thus the
27+
# build fails. If that happens, developers should run "make makefiles"
28+
# locally and commit the changes.
29+
RUN make makefiles
30+
RUN test -z "$(git status --porcelain */Makefile.dependencies)"
31+
32+
RUN make
33+
RUN make fltools
34+
RUN make manual
35+
36+
# Python module 'assess' is required for some longtests
37+
RUN python3 -m pip install --break-system-packages assess

femtools/Diagnostic_variables.F90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ subroutine initialise_constant_diagnostics(unit, binary_format)
11851185
call get_environment_variable(name="HOSTNAME", value=value_buffer, status=stat)
11861186
if (stat /= 0) then
11871187
ewrite(0, *) "GET_ENVIRONMENT_VARIABLE('HOSTNAME') returned no-zero status: ", stat
1188+
else
11881189
buffer=constant_tag(name="HostName", type="string", value=trim(value_buffer))
11891190
write(unit, '(a)') trim(buffer)
11901191
end if

tools/Fladapt.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ subroutine fladapt(input_basename_, input_basename_len, &
5757
interface
5858
subroutine check_options()
5959
end subroutine check_options
60-
6160
end interface
6261

6362
character(kind=c_char, len=1) :: input_basename_(*)

0 commit comments

Comments
 (0)