mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-01-31 01:25:21 +01:00
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: macOS Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build-automake:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install build tools
|
|
run: brew install autoconf automake libtool
|
|
- name: Configure Automake
|
|
run: |
|
|
./bootstrap
|
|
./configure --prefix=$(pwd)/install
|
|
- name: Build Automake
|
|
run: |
|
|
make
|
|
make install
|
|
- name: Clean build
|
|
run: make clean
|
|
- name: Build Manual makefile
|
|
working-directory: mac
|
|
run: make -f Makefile-manual
|
|
|
|
build-cmake:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
path: hidapisrc
|
|
- name: Configure CMake
|
|
run: |
|
|
rm -rf build install
|
|
cmake -B build/shared -S hidapisrc -DCMAKE_INSTALL_PREFIX=install/shared
|
|
cmake -B build/framework -S hidapisrc -DCMAKE_INSTALL_PREFIX=install/framework -DCMAKE_FRAMEWORK=ON
|
|
- name: Build CMake Shared
|
|
working-directory: build/shared
|
|
run: make install
|
|
- name: Build CMake Framework
|
|
working-directory: build/framework
|
|
run: make install
|
|
- name: Check artifacts
|
|
uses: andstor/file-existence-action@v1
|
|
with:
|
|
files: "install/shared/lib/libhidapi.dylib, install/shared/include/hidapi/hidapi.h, install/framework/lib/hidapi.framework/hidapi, install/framework/lib/hidapi.framework/Headers/hidapi.h"
|
|
allow_failure: true
|