Skip to content

Commit 7a70d05

Browse files
committed
Build programs as C++20
Use ubuntu-24.04 and g++-14 for GitHub workflows.
1 parent 726bf1c commit 7a70d05

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/check-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ on:
1515

1616
jobs:
1717
build:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-24.04
1919

2020
steps:
2121
- uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 1
2424

2525
- name: Compile binary programs
26-
run: make pgms
26+
run: make CXX=g++-14 pgms
2727

2828
- name: Check for carriage returns
2929
run: |

.github/workflows/check-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ on:
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717

1818
steps:
1919
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 1
2222

2323
- name: Compile binary programs
24-
run: make pgms
24+
run: make CXX=g++-14 pgms
2525

2626
- name: Extract issue timestamps from published files
2727
run: |

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
update-html-pages:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313

1414
steps:
1515
- name: Use cached git repo
@@ -51,7 +51,7 @@ jobs:
5151
run: make dates
5252

5353
- name: Build programs
54-
run: make pgms -j 4
54+
run: make CXX=g++-14 pgms -j 4
5555

5656
- name: Generate HTML lists
5757
run: make lists

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The binaries that we want to build
22
PGMS := bin/lists bin/section_data bin/toc_diff bin/list_issues bin/set_status
3-
CXXFLAGS := -std=c++17 -Wall -g -O2 -D_GLIBCXX_ASSERTIONS
3+
CXXFLAGS := -std=c++20 -Wall -g -O2 -D_GLIBCXX_ASSERTIONS
44

55
# Running 'make debug' is equivalent to 'make DEBUG=1'
66
ifeq "$(MAKECMDGOALS)" "debug"

bin/build_pgms.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
echo "Use -m32 switch to force 32-bit build"
2-
g++ %* -std=c++17 -DNDEBUG -O2 -o bin/lists.exe src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/mailing_info.cpp src/report_generator.cpp src/metadata.cpp src/lists.cpp
3-
g++ %* -std=c++17 -o bin/section_data.exe src/section_data.cpp
4-
g++ %* -std=c++17 -o bin/toc_diff.exe src/toc_diff.cpp
5-
g++ %* -std=c++17 -DNDEBUG -O2 -o bin/list_issues.exe src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/metadata.cpp src/list_issues.cpp
6-
g++ %* -std=c++17 -DNDEBUG -O2 -o bin/set_status.exe src/set_status.cpp src/status.cpp
2+
g++ %* -std=c++20 -DNDEBUG -O2 -o bin/lists.exe src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/mailing_info.cpp src/report_generator.cpp src/metadata.cpp src/lists.cpp
3+
g++ %* -std=c++20 -o bin/section_data.exe src/section_data.cpp
4+
g++ %* -std=c++20 -o bin/toc_diff.exe src/toc_diff.cpp
5+
g++ %* -std=c++20 -DNDEBUG -O2 -o bin/list_issues.exe src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/metadata.cpp src/list_issues.cpp
6+
g++ %* -std=c++20 -DNDEBUG -O2 -o bin/set_status.exe src/set_status.cpp src/status.cpp
77

0 commit comments

Comments
 (0)