-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from philips-software/adds-github-actions
Adds build for ubuntu / mac
- Loading branch information
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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" |
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
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" |
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
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 .. |