Run GitHub Actions workflow on Linux and macOS #72
Workflow file for this run
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: "bashdb CI" | |
on: | |
push: | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
name: "Run Tests on ${{ matrix.os }}" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies for Linux | |
if: runner.os == 'Linux' | |
shell: bash | |
run: |+ | |
sudo apt -y update | |
sudo apt -y install autoconf automake texinfo | |
- name: Install dependencies for macOS | |
if: runner.os == 'macOS' | |
shell: bash | |
run: |+ | |
brew update | |
brew install bash | |
brew install autoconf automake texinfo | |
# This pulls many transitive dependencies | |
brew install pygments | |
- name: Configure | |
shell: bash | |
run: bash ./autogen.sh | |
- name: Test | |
shell: bash | |
env: | |
VERBOSE: 1 | |
run: make -e -j3 check |