Skip to content

Add STATICLINK config option to prefer static linking of tools #246

Add STATICLINK config option to prefer static linking of tools

Add STATICLINK config option to prefer static linking of tools #246

Workflow file for this run

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
- 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