Skip to content

Commit

Permalink
CI: test with clang, too
Browse files Browse the repository at this point in the history
  • Loading branch information
slivingston committed Jul 20, 2024
1 parent d60e453 commit a74159b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ on:
pull_request:

jobs:
build:
build-and-test:
name: Build and test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
cc: ['gcc', 'clang']
steps:
- uses: actions/checkout@v4
- name: Install APT packages
Expand All @@ -17,10 +20,10 @@ jobs:
sudo apt install \
build-essential \
graphviz \
gcc
- name: Display versions of GCC, bison, flex
${{ matrix.cc }}
- name: Display versions
run: |
gcc --version
${{ matrix.cc }} --version
bison --version
flex --version
- name: Build dependencies
Expand All @@ -30,7 +33,9 @@ jobs:
./build-deps.sh
- name: Build gr1c
run: |
export CC=clang
make -e all
- name: Run tests
run: |
export CC=clang
VERBOSE=1 make -e check

0 comments on commit a74159b

Please sign in to comment.