Skip to content

Commit 02cf798

Browse files
committed
add CI job that tests whether the amalgamated library builds
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 77f047f commit 02cf798

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ jobs:
155155
cat valgrind_test.log || true
156156
cat gcc_errors_*.log || true
157157
158+
amalgam:
159+
runs-on: ubuntu-22.04
160+
steps:
161+
- uses: actions/checkout@v2
162+
- name: install dependencies
163+
run: |
164+
make amalgamated_timing
165+
158166
CMake:
159167
runs-on: ${{ matrix.os }}
160168
strategy:

makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ profiled:
6969
make CFLAGS="$(CFLAGS) -fbranch-probabilities"
7070

7171
#make a single object profiled library
72-
profiled_single: pre_gen
72+
amalgamated_timing: pre_gen
7373
$(CC) $(LTM_CFLAGS) -fprofile-arcs -c pre_gen/tommath_amalgam.c -o tommath_amalgam.o
7474
$(CC) $(LTM_CFLAGS) -DMP_VERSION=\"before\" demo/timing.c tommath_amalgam.o -lgcov -o timing
75+
76+
profiled_single: amalgamated_timing
7577
./timing
7678
rm -f *.o timing
7779
$(CC) $(LTM_CFLAGS) -fbranch-probabilities -c pre_gen/tommath_amalgam.c -o tommath_amalgam.o

0 commit comments

Comments
 (0)