github/ci: adding separate tasks split by os #318
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: Core C CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
standard: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest, macos-latest] | |
name: "💦 ${{ matrix.runs-on }}" | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup environment (macOS) | |
if: runner.os == 'macos' | |
run: | | |
brew update | |
brew install autoconf automake pybind11 virtualenv | |
- name: Setup environment (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get install -y --no-install-recommends build-essential pybind11-dev virtualenv | |
#- name: Setup libfec | |
# run: git clone https://github.com/jgaeddert/libfec.git && cd libfec && ./configure && make && sudo make install | |
- name: Setup python virtual environment | |
run: | | |
python3 -m venv /tmp/liquid | |
source /tmp/liquid/bin/activate | |
pip install pybind11 numpy matplotlib | |
- name: bootstrap | |
run: ./bootstrap.sh | |
- name: configure | |
run: ./configure | |
- name: make | |
run: make -j 2 | |
- name: make check-doc | |
run: make check-doc | |
- name: make check | |
run: make -j 2 check | |
- name: make install | |
run: sudo make install | |
- name: ldconfig (Linux) | |
if: runner.os == 'Linux' | |
run: sudo ldconfig | |
- name: make check-link | |
run: make check-link |