C90-style declarations, BSD compatm, and TLS-specific code #392
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: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'include/**' | |
- 'Makefile' | |
- '*.mk' | |
- '.github/workflows/build.yml' | |
pull_request: | |
paths: | |
- 'src/**' | |
- 'include/**' | |
- 'Makefile' | |
- '*.mk' | |
- '.github/workflows/build.yml' | |
jobs: | |
build: | |
name: Build library | |
runs-on: ubuntu-latest | |
env: | |
CC: gcc | |
CFLAGS: -Os -Wall -Wextra -Werror -std=c99 | |
XCHANGE: xchange | |
steps: | |
- name: Check out RedisX | |
uses: actions/checkout@v4 | |
- name: Check out xchange | |
uses: actions/checkout@v4 | |
with: | |
repository: Smithsonian/xchange | |
path: xchange | |
- name: Install build dependencies | |
run: sudo apt-get install libpopt-dev libreadline-dev libbsd-dev libssl-dev | |
- name: Build static library | |
run: make static | |
- name: Build xchange dependency | |
run: make -C xchange shared | |
- name: Build shared library | |
run: make shared | |
- name: Build tools | |
run: make tools | |