github/ci: entire environment needs to be built up again, apparently #327
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 | |
- name: Setup environment (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get install -y --no-install-recommends build-essential | |
#- name: Setup libfec | |
# run: git clone https://github.com/jgaeddert/libfec.git && cd libfec && ./configure && make && sudo make install | |
- name: bootstrap | |
run: ./bootstrap.sh | |
- name: configure | |
run: ./configure | |
- name: make | |
run: make -j 2 | |
- name: make check | |
run: make -j 2 check | |
- name: make check-doc | |
run: | | |
make check-doc-c | |
make check-doc-cc | |
- 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 | |
python: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest, macos-latest] | |
name: "💦 ${{ matrix.runs-on }}" | |
runs-on: ${{ matrix.runs-on }} | |
needs: standard | |
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 python3-dev | |
- name: bind | |
run: | | |
python3 -m venv /tmp/liquid | |
source /tmp/liquid/bin/activate | |
pip install pybind11 numpy matplotlib | |
./bootstrap.sh | |
./configure | |
make -j 2 | |
make -j 2 python | |
make check-python | |
make check-doc-bind-cc | |
make check-doc-python | |