Skip to content

Commit

Permalink
Merge pull request #75 from h2o/gfx/ci-gha
Browse files Browse the repository at this point in the history
Introduce GitHub Actions (+ASan & UBSan), retiring Travis CI
  • Loading branch information
kazuho authored Jan 29, 2024
2 parents 4e7bc76 + fc85cf9 commit f8d0513
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
cc:
- gcc
- clang
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: make test
run: make test CC=${{ matrix.cc }}
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@

CC?=gcc
PROVE?=prove
CFLAGS=-Wall -fsanitize=address,undefined
TEST_ENV="UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1"

all:

test: test-bin
$(PROVE) -v ./test-bin
env $(TEST_ENV) $(PROVE) -v ./test-bin

test-bin: picohttpparser.c picotest/picotest.c test.c
$(CC) -Wall $(CFLAGS) $(LDFLAGS) -o $@ $^
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

clean:
rm -f test-bin
Expand Down

0 comments on commit f8d0513

Please sign in to comment.