Skip to content

Commit

Permalink
action: add additional compiler configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
j123b567 committed Jan 16, 2023
1 parent eca632b commit c40d92b
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions .github/workflows/ubuntu.yml → .github/workflows/main.yml
@@ -1,4 +1,4 @@
name: ubuntu-latest
name: Build
on: [push, pull_request]

jobs:
Expand All @@ -8,10 +8,21 @@ jobs:
- uses: actions/checkout@v2

- name: install_dependencies
run: sudo apt-get install libcunit1-dev clang lcov
run: sudo apt-get install libcunit1-dev clang

- name: make
run: make clean all
run: make clean all test

- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: armv7
distro: ubuntu_latest
install: |
apt-get update -q -y
apt-get install -q -y build-essential libcunit1-dev
run: make all test

- name: clang_sanitize_address
env:
Expand All @@ -34,6 +45,35 @@ jobs:
LDFLAGS: -g -fsanitize=address
run: make clean test

# - name: gcc-c89
# env:
# CFLAGS: -std=c89
# run: make clean all test

# - name: gcc-c90
# env:
# CFLAGS: -std=c90
# run: make clean all test

- name: gcc-c99
env:
CFLAGS: -std=c99
run: make clean all test

- name: gcc-gnu99
env:
CFLAGS: -std=gnu99
run: make clean all test


coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: install_dependencies
run: sudo apt-get install libcunit1-dev lcov

- name: coverage
env:
CFLAGS: -fprofile-arcs -ftest-coverage
Expand Down

0 comments on commit c40d92b

Please sign in to comment.