Add MacOS build (latest) to github workflow

pull/1610/head
Mike Black W9MDB 2024-09-08 08:43:32 -05:00
rodzic 147fb072f4
commit 6cc21cdad3
1 zmienionych plików z 14 dodań i 4 usunięć

Wyświetl plik

@ -8,17 +8,26 @@ on:
jobs: jobs:
build: build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: bootstrap - name: Install dependencies on Linux
if: runner.os == 'Linux'
run: | run: |
sudo apt install libusb-1.0-0-dev sudo apt install libusb-1.0-0-dev
sudo apt install libgpiod-dev sudo apt install libgpiod-dev
sudo apt install grep sudo apt install grep
./bootstrap - name: Install dependencies on macOS
if: runner.os == 'macOS'
run: |
brew install libusb
brew install grep
- name: bootstrap
run: ./bootstrap
- name: README Debug - name: README Debug
run: grep README Makefile.am run: grep README Makefile.am
- name: configure - name: configure
@ -29,3 +38,4 @@ jobs:
run: make check run: make check
- name: make distcheck - name: make distcheck
run: make distcheck run: make distcheck