Skip to content

Makefile simplifications #39

Makefile simplifications

Makefile simplifications #39

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