Build CSharp and Java for MacOS.
@@ -124,6 +124,40 @@ jobs:
path: ${{runner.workspace}}/build/*.rock
if-no-files-found: error
+ macos:
+ needs: build
+ runs-on: [macos-latest]
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Create Build Environment
+ run: cmake -E make_directory ${{runner.workspace}}/build
+
+ - name: Configure CMake
+ shell: bash
+ working-directory: ${{runner.workspace}}/build
+ run: |
+ export JAVA_HOME=$JAVA_HOME_8_X64
+ cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTINYSPLINE_ENABLE_CSHARP=True -DTINYSPLINE_ENABLE_JAVA=True
+
+ - name: Build
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: |
+ cmake --build . --target tinysplinecsharp tinysplinejava --config $BUILD_TYPE
+ dotnet pack *.csproj
+ mvn package
+
+ - name: Deploy
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ matrix.os }}_amd64
+ path: |
+ ${{runner.workspace}}/build/*.nupkg
+ ${{runner.workspace}}/build/target/*.jar
+ if-no-files-found: error
+
python:
needs: build
runs-on: ${{ matrix.os }}
@@ -214,7 +248,7 @@ jobs:
if-no-files-found: error
package:
- needs: [lua, python, uwp]
+ needs: [lua, macos, python, uwp]
runs-on: ubuntu-latest
steps:
