Merge pull request #24 from sjinks/renovate/alpine-3.x #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
permissions: | |
contents: read | |
name: Build | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') || github.event_name == 'workflow_dispatch' }} | |
strategy: | |
fail-fast: true | |
matrix: | |
COMPILER: | |
- CC: gcc | |
CFLAGS: -O2 -Wall -Wextra -Werror -Wno-unknown-pragmas -Wno-unused-parameter -fvisibility=hidden -fno-strict-aliasing | |
- CC: clang | |
CFLAGS: -O2 -Weverything -Werror -Wno-unknown-warning-option -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unsafe-buffer-usage -Wno-strict-prototypes -fvisibility=hidden -fno-strict-aliasing | |
CPPFLAGS: | |
- "" | |
- "-DMINIMALISTIC_BUILD" | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Install dependencies | |
run: sudo apt-get -qq update && sudo apt-get install -y libev-dev | |
- name: make | |
run: make CPPFLAGS="${{ matrix.CPPFLAGS }}" CC=${{ matrix.COMPILER.CC }} CFLAGS="${{ matrix.COMPILER.CFLAGS }}" |