Skip to content

Commit

Permalink
Merge pull request #1 from philips-software/adds-github-actions
Browse files Browse the repository at this point in the history
Adds build for ubuntu / mac
  • Loading branch information
vansweej authored Feb 21, 2021
2 parents b6a5711 + 6d59911 commit 13cf043
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Unity Native Audio Plugins CI

on: [push]

jobs:
build-ubuntu:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: prepare
run: |
cmake --version
version=3.15
build=3
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$version/cmake-$version.$build-Linux-x86_64.sh
sudo mkdir /opt/cmake
sudo sh cmake-$version.$build-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
sudo rm /usr/local/bin/cmake
sudo ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
cmake --version
- name: build
run: |
cmake --version
./ci/bin/build-ubuntu.sh
build-mac:

runs-on: macOS-latest

steps:
- uses: actions/checkout@v1
- name: build
run: ./ci/bin/build-mac.sh
10 changes: 10 additions & 0 deletions ci/bin/build-mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
cd "$(dirname "$0")"

cd ../..

rm -rf build-mac
mkdir build-mac
cd build-mac

cmake .. -G"Xcode"
10 changes: 10 additions & 0 deletions ci/bin/build-ninja.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
cd "$(dirname "$0")"

cd ../..

rm -rf build-ninja
mkdir build-ninja
cd build-ninja

cmake .. -G"Ninja"
10 changes: 10 additions & 0 deletions ci/bin/build-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
cd "$(dirname "$0")"

cd ../..

rm -rf build-ubuntu
mkdir build-ubuntu
cd build-ubuntu

cmake ..

0 comments on commit 13cf043

Please sign in to comment.