Skip to content

Commit 7815b0f

Browse files
committed
chore: check if we are using mold
1 parent 20cc1b8 commit 7815b0f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/cpp.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ jobs:
6969
if: matrix.cxx.cmd == 'g++-15'
7070
run: sudo apt update && sudo apt install -y "gcc-${CXX##*-}"
7171

72+
- name: Setup mold
73+
uses: rui314/setup-mold@v1
74+
7275
- name: Setup Ubuntu dependencies
7376
if: runner.os == 'Linux'
7477
uses: ./.github/actions/setup-ubuntu-deps
@@ -85,9 +88,6 @@ jobs:
8588
mkdir tests/lib-sharness
8689
mv functions.sh tests/lib-sharness/
8790
88-
- name: Setup mold
89-
uses: rui314/setup-mold@v1
90-
9191
- name: Print versions
9292
run: make versions
9393

@@ -97,6 +97,8 @@ jobs:
9797
- name: Stage 1 - Print version
9898
run: ./build/cabin version --verbose
9999

100+
- run: readelf -p .comment ./build/cabin
101+
100102
- name: Stage 1 - Test
101103
run: make BUILD=${{ matrix.build }} test -j4
102104

@@ -113,6 +115,8 @@ jobs:
113115
# # test runs on test profile derived from dev profile (i.e., -fno-lto). ld cannot read LTO object files
114116
# LDFLAGS: ${{ (matrix.build == 'release' && startsWith(matrix.cxx.cmd, 'clang')) && '-flto' || '' }}
115117

118+
- run: readelf -p .comment ./cabin-out/${{ matrix.build }}/cabin
119+
116120
- name: Stage 2 - Print version
117121
run: ./cabin-out/${{ matrix.build }}/cabin version --verbose
118122

0 commit comments

Comments
 (0)