Makefile: install only what was built #19
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: Test install | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'include/**' | |
- 'tools/src/**' | |
- 'Makefile' | |
- '*.mk' | |
- '.github/workflows/install.yml' | |
pull_request: | |
paths: | |
- 'src/**' | |
- 'include/**' | |
- 'tools/src/**' | |
- 'Makefile' | |
- '*.mk' | |
- '.github/workflows/install.yml' | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
env: | |
CC: gcc | |
steps: | |
- name: install doxygen | |
run: sudo apt-get install doxygen | |
- name: Check out RedisX | |
uses: actions/checkout@v4 | |
- name: Check out xchange | |
uses: actions/checkout@v4 | |
with: | |
repository: Smithsonian/xchange | |
path: xchange | |
- name: Build xchange dependency | |
run: make -C xchange shared | |
- name: Install xchange dependency | |
run: sudo make -C xchange install | |
- name: Build RedisX distro | |
run: make distro | |
- name: Install RedisX in default location | |
run: sudo make install | |