Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linux clang workflow #34

Merged
merged 1 commit into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@ name: test
on: [pull_request, workflow_dispatch]

jobs:
linux:
name: linux
linux-gcc:
name: linux-gcc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make all
run: CC=gcc make all
- name: Run tests
run: ./build/test

linux-clang:
name: linux-clang
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: CC=clang make all
- name: Run tests
run: ./build/test

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ VERSION := 0.1.0

ASFLAGS += -g -fpic
CFLAGS += -g -Wall -Werror
CLANG_ASFLAGS = "-fno-integrated-as"
CLANG_ASFLAGS = -fno-integrated-as
LDFLAGS += -L .
testlibs = -lhashtree
benchlibs = -lhashtree -lm
Expand Down
Loading