Skip to content

Commit

Permalink
GitHub CI workflow to run handcomp_tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Sep 16, 2024
1 parent a05aa9f commit f58b713
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/handcomp-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Hand-compiled tests

permissions:
contents: read

on:
workflow_dispatch:
push:
pull_request:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
handcomp_test:
runs-on: ${{ matrix.os }}
container:
image: ${{(startsWith(matrix.os, 'ubuntu') && 'ghcr.io/llvm/ci-ubuntu-22.04:latest') || null}}
volumes:
- /mnt/:/mnt/
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup OpenCilk compiler
id: build-opencilk
uses: OpenCilk/actions/build-opencilk-project@main
with:
projects: clang
os_list: '${{ matrix.os }}'
- name: make
shell: bash
run: |
opencilkdir=${{ steps.build-opencilk.outputs.opencilk-builddir }}
COMPILER_BASE=$opencilkdir/bin/ make
- name: make check
shell: bash
run:
opencilkdir=${{ steps.build-opencilk.outputs.opencilk-builddir }}
COMPILER_BASE=$opencilkdir/bin/ make -C handcomp_test check
3 changes: 2 additions & 1 deletion handcomp_test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ OBJS = $(patsubst %.c,%.o,$(SRCS))
DEFINES = $(ABI_DEF)

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

0 comments on commit f58b713

Please sign in to comment.