Update build #7
Workflow file for this run
This file contains hidden or 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: | |
| workflow_dispatch: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| build-system: | |
| - autotools | |
| - cmake | |
| os: | |
| - macos-latest | |
| - ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| if test ${{ matrix.os }} = ubuntu-latest | |
| then sudo apt-get install -y libgtest-dev memtailor | |
| else brew install autoconf automake libtool googletest \ | |
| Macaulay2/tap/memtailor | |
| echo "CPPFLAGS=-I$(brew --prefix)/include" >> $GITHUB_ENV | |
| echo "LDFLAGS= -L$(brew --prefix)/lib" >> $GITHUB_ENV | |
| fi | |
| - name: Build and check | |
| run: | | |
| mkdir build-dir | |
| cd build-dir | |
| if test ${{ matrix.build-system }} = autotools | |
| then ../autogen.sh | |
| ../configure | |
| make distcheck | |
| else cmake -B. -S.. -GNinja | |
| ninja | |
| fi |