Skip to content

Commit f58b713

Browse files
committed
GitHub CI workflow to run handcomp_tests.
1 parent a05aa9f commit f58b713

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.github/workflows/handcomp-tests.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Hand-compiled tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
pull_request:
10+
11+
concurrency:
12+
# Skip intermediate builds: always.
13+
# Cancel intermediate builds: only if it is a pull request build.
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
16+
17+
jobs:
18+
handcomp_test:
19+
runs-on: ${{ matrix.os }}
20+
container:
21+
image: ${{(startsWith(matrix.os, 'ubuntu') && 'ghcr.io/llvm/ci-ubuntu-22.04:latest') || null}}
22+
volumes:
23+
- /mnt/:/mnt/
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
os: [ubuntu-latest]
28+
steps:
29+
- name: checkout
30+
uses: actions/checkout@v4
31+
- name: Setup OpenCilk compiler
32+
id: build-opencilk
33+
uses: OpenCilk/actions/build-opencilk-project@main
34+
with:
35+
projects: clang
36+
os_list: '${{ matrix.os }}'
37+
- name: make
38+
shell: bash
39+
run: |
40+
opencilkdir=${{ steps.build-opencilk.outputs.opencilk-builddir }}
41+
COMPILER_BASE=$opencilkdir/bin/ make
42+
- name: make check
43+
shell: bash
44+
run:
45+
opencilkdir=${{ steps.build-opencilk.outputs.opencilk-builddir }}
46+
COMPILER_BASE=$opencilkdir/bin/ make -C handcomp_test check

handcomp_test/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ OBJS = $(patsubst %.c,%.o,$(SRCS))
77
DEFINES = $(ABI_DEF)
88

99
TESTS = cilksort fib mm_dac nqueens
10-
OPTIONS = $(OPT) $(ARCH) $(DBG) -Wall $(DEFINES) -fno-omit-frame-pointer
10+
INCLUDES = -I../include/
11+
OPTIONS = $(OPT) $(ARCH) $(DBG) -Wall $(DEFINES) $(INCLUDES) -fno-omit-frame-pointer
1112
# dynamic linking
1213
# RTS_DLIBS = -L../runtime -Wl,-rpath -Wl,../runtime -lopencilk
1314
# RTS_LIBS = ../runtime/$(RTS_LIB).so

0 commit comments

Comments
 (0)