Skip to content

Commit

Permalink
Add linux clang workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed May 25, 2024
1 parent 1efb91a commit 1cd0ff6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@ on: [pull_request, workflow_dispatch]

jobs:
linux:
name: linux
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

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

0 comments on commit 1cd0ff6

Please sign in to comment.