add macos build action
This commit is contained in:
@@ -11,19 +11,30 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install libraries
|
- name: Install libraries (Linux)
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
run: sudo apt-get install -y libevent-dev
|
||||||
|
|
||||||
|
- name: Install libraries (macOS)
|
||||||
|
if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: brew install libevent
|
||||||
|
|
||||||
|
- name: Install phosg
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/fuzziqersoftware/phosg.git
|
git clone https://github.com/fuzziqersoftware/phosg.git
|
||||||
cd phosg
|
cd phosg
|
||||||
cmake .
|
cmake .
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
sudo apt-get install -y libevent-dev
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
|||||||
Reference in New Issue
Block a user