Add make install with support for prefix and GNU standard locations #85
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 | |
REDISX: ../redisx | |
steps: | |
- name: Check out smax-clib | |
uses: actions/checkout@v4 | |
with: | |
repository: Smithsonian/smax-clib | |
path: smax-clib | |
- name: Check out xchange dependency | |
uses: actions/checkout@v4 | |
with: | |
repository: Smithsonian/xchange | |
path: xchange | |
- name: Check out RedisX dependency | |
uses: actions/checkout@v4 | |
with: | |
repository: Smithsonian/redisx | |
path: redisx | |
- name: Build static library | |
run: make -C smax-clib static | |
- name: Build xchange dependency | |
run: make -C xchange shared | |
- name: Build RedisX dependency | |
run: make -C redisx shared | |
- name: Build shared library | |
run: make -C smax-clib shared | |