-
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 #2 from BastiaanOlij/studio_102_build
Change build system to Studio 10.2
- Loading branch information
Showing
45 changed files
with
336 additions
and
3,753 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,111 @@ | ||
|
||
|
||
# Workflow to automatically compile a Linux/Windows library on commit/push | ||
name: Build on push | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events, but only for the master branch we'll create .zip files | ||
on: | ||
[push, pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This job builds the plugin for our target platforms | ||
build: | ||
name: Building for ${{ matrix.platform }} (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
# faster testing by disabling the others... | ||
- os: macos-latest | ||
platform: macos | ||
- os: windows-latest | ||
platform: windows | ||
|
||
steps: | ||
- name: Setup actions | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Add msbuild to PATH (Windows) | ||
uses: microsoft/setup-msbuild@v1.1 | ||
with: | ||
msbuild-architecture: x64 | ||
if: matrix.platform == 'windows' | ||
|
||
- name: Get SDK (MacOS) | ||
run: | | ||
curl -O "ftp://ftp.omnis.net/OmnisStudio/Studio102_31315/SDK/osx64/OSX-SDK-10.2-31315.dmg" | ||
hdiutil attach OSX-SDK-10.2-31315.dmg | ||
cp -a /volumes/OSX-SDK-10.2-31315/OSX-SDK-10.2-31315/. thirdparty/omnis.sdk/mac/ | ||
hdiutil detach /volumes/OSX-SDK-10.2-31315 | ||
if: matrix.platform == 'macos' | ||
|
||
- name: Get SDK (Windows) | ||
run: | | ||
curl -O "ftp://ftp.omnis.net/OmnisStudio/Studio102_31315/SDK/windows/Windows-SDK-10.2-31315-x86-x64.zip" | ||
tar -xf Windows-SDK-10.2-31315-x86-x64.zip | ||
xcopy /E /I Windows-SDK-10.2-31315-x86-x64\* thirdparty\omnis.sdk\win\ | ||
if: matrix.platform == 'windows' | ||
|
||
- name: Build (MacOS) | ||
run: | | ||
xcodebuild -project oExample.xcodeproj build | ||
if: matrix.platform == 'macos' | ||
|
||
- name: Build (Windows) | ||
run: | | ||
MSBuild example.vcxproj /property:Platform=x64 /property:Configuration="UNICODE Release" | ||
if: matrix.platform == 'windows' | ||
|
||
- name: Upload build files (artifacts) (MacOS) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: xcomp-macos | ||
path: | | ||
_OSXUnicode | ||
if: matrix.platform == 'macos' | ||
|
||
- name: Upload build files (artifacts) (Windows) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: xcomp-windows | ||
path: | | ||
URel64/example.dll | ||
if: matrix.platform == 'windows' | ||
|
||
# This job collects the build output and assembles the final asset (artifact) | ||
asset: | ||
name: Assembling the asset (artifact) | ||
runs-on: ubuntu-20.04 | ||
needs: build | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v2 | ||
- name: Copy files to destination | ||
run: | | ||
mkdir oExample | ||
mkdir oExample/macos | ||
mkdir oExample/windows | ||
cp -a xcomp-macos/. oExample/macos/ | ||
cp xcomp-windows/example.dll oExample/windows/ | ||
- name: Get tag name | ||
run: | | ||
echo "GITHUB_SHA_SHORT=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV | ||
if: startsWith(github.ref, 'refs/tags') | ||
- name: Zip asset | ||
run: | | ||
zip -qq -r oExample.zip oExample/. | ||
- name: Create and upload asset | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
artifacts: "oExample.zip" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
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
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 |
---|---|---|
@@ -1,14 +1,20 @@ | ||
*.ncb | ||
/*.suo | ||
/*.sln | ||
/*.user | ||
/*.sdf | ||
# mac | ||
_OSXUnicodeDbg | ||
_OSXUnicode | ||
UnicodeCore.build | ||
oExample.xcodeproj/* | ||
!oExample.xcodeproj/project.pbxproj | ||
.DS_Store | ||
|
||
#windows | ||
Release | ||
UDeb | ||
URel | ||
URel64 | ||
UDeb64 | ||
UnicodeCore.build | ||
build | ||
.vs | ||
.DS_Store | ||
*.ncb | ||
/*.suo | ||
/*.sln | ||
/*.user | ||
/*.sdf |
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,3 @@ | ||
[submodule "thirdparty/omnis.xcomp.framework"] | ||
path = thirdparty/omnis.xcomp.framework | ||
url = https://github.com/BastiaanOlij/omnis.xcomp.framework |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Changelog | ||
Notable changes to versions in this repository | ||
|
||
## ???? | ||
- Moving build system to Studio 10.2 | ||
- Removed all build systems | ||
|
||
## 2019-02-04 | ||
- Making this work on Studio 10.0 |
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,3 @@ | ||
{ | ||
"COMP_RES_1" = "OEXAMPLE.PNG"; | ||
} |
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,11 @@ | ||
{ | ||
"COMP_RES_1000" = "Example Library"; | ||
"COMP_RES_2000" = "Example Object"; | ||
"COMP_RES_2100" = "Example NVObject"; | ||
"COMP_RES_7000" = "test:Test value"; | ||
"COMP_RES_8000" = "$testMethod:$testMethod() Just a test method that returns a test string."; | ||
"COMP_RES_8100" = "$nvTestMethod:$nvTestMethod() Just a test method that returns a test string."; | ||
"COMP_RES_8101" = "$testCallback:$testCallback() Just a test mehtod that calls back into Omnis."; | ||
"COMP_RES_8102" = "$evCallback:$evCallback() this method gets called by $testCallback."; | ||
"COMP_RES_31000" = "FrameworkWndProc"; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.