Various build updates #9
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 | |
| else brew install autoconf automake | |
| fi | |
| - name: Build and check memtailor | |
| 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 |