|
@@ -1,4 +1,4 @@
|
|
-name: "Build FBX2GLTF"
|
|
|
|
|
|
+name: "Build FBX2glTF"
|
|
on:
|
|
on:
|
|
pull_request:
|
|
pull_request:
|
|
branches:
|
|
branches:
|
|
@@ -14,11 +14,11 @@ concurrency:
|
|
cancel-in-progress: true
|
|
cancel-in-progress: true
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
- build-win-10:
|
|
|
|
|
|
+ build-windows:
|
|
runs-on: windows-2019
|
|
runs-on: windows-2019
|
|
steps:
|
|
steps:
|
|
- name: Checkout
|
|
- name: Checkout
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
+ uses: actions/checkout@v3
|
|
|
|
|
|
- name: Install conan
|
|
- name: Install conan
|
|
run: |
|
|
run: |
|
|
@@ -82,11 +82,14 @@ jobs:
|
|
./build/Release/FBX2glTF.exe --help
|
|
./build/Release/FBX2glTF.exe --help
|
|
shell: bash
|
|
shell: bash
|
|
|
|
|
|
- - name: Copy licenses
|
|
|
|
|
|
+ - name: Prepare artifacts
|
|
run: |
|
|
run: |
|
|
- mkdir -p result
|
|
|
|
- cp sdk/Windows/2020.2/License.rtf thirdparty-license.rtf
|
|
|
|
- cp build/Release/FBX2glTF.exe FBX2glTF.exe
|
|
|
|
|
|
+ export TARGET=FBX2glTF-windows-x86_64
|
|
|
|
+ mkdir $TARGET
|
|
|
|
+ cp sdk/Windows/2020.2/License.rtf $TARGET/FBX-SDK-License.rtf
|
|
|
|
+ cp LICENSE $TARGET/FBX2glTF-License.txt
|
|
|
|
+ cp build/Release/FBX2glTF.exe $TARGET/FBX2glTF-windows-x86_64.exe
|
|
|
|
+ 7z a -r $TARGET.zip $TARGET
|
|
shell: bash
|
|
shell: bash
|
|
|
|
|
|
- name: Release
|
|
- name: Release
|
|
@@ -94,33 +97,22 @@ jobs:
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
with:
|
|
files: |
|
|
files: |
|
|
- thirdparty-license.rtf
|
|
|
|
- LICENSE
|
|
|
|
- FBX2glTF.exe
|
|
|
|
|
|
+ FBX2glTF-windows-x86_64.zip
|
|
|
|
+ FBX2glTF-windows-x86_64/FBX2glTF-License.txt
|
|
|
|
+ FBX2glTF-windows-x86_64/FBX-SDK-License.rtf
|
|
|
|
|
|
- - name: FBX2glTF.exe
|
|
|
|
|
|
+ - name: FBX2glTF-windows-x86_64
|
|
uses: actions/upload-artifact@v3
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
with:
|
|
- name: FBX2glTF.exe
|
|
|
|
- path: FBX2glTF.exe
|
|
|
|
|
|
+ name: FBX2glTF-windows-x86_64
|
|
|
|
+ path: FBX2glTF-windows-x86_64/*
|
|
|
|
|
|
- - name: thirdparty-license.rtf
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
- with:
|
|
|
|
- name: thirdparty-license.rtf
|
|
|
|
- path: thirdparty-license.rtf
|
|
|
|
-
|
|
|
|
- - name: Archive results
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
- with:
|
|
|
|
- name: LICENSE
|
|
|
|
- path: LICENSE
|
|
|
|
|
|
|
|
- build-ubuntu:
|
|
|
|
|
|
+ build-linux:
|
|
runs-on: ubuntu-20.04
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
steps:
|
|
- name: Checkout
|
|
- name: Checkout
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
+ uses: actions/checkout@v3
|
|
|
|
|
|
- name: Install conan
|
|
- name: Install conan
|
|
run: |
|
|
run: |
|
|
@@ -184,48 +176,39 @@ jobs:
|
|
./build/FBX2glTF --help
|
|
./build/FBX2glTF --help
|
|
shell: bash
|
|
shell: bash
|
|
|
|
|
|
- - name: Copy licenses
|
|
|
|
|
|
+ - name: Prepare artifacts
|
|
run: |
|
|
run: |
|
|
- mkdir -p result
|
|
|
|
- cp sdk/Linux/2020.2/License.txt thirdparty-license.txt
|
|
|
|
- cp build/FBX2glTF FBX2glTF
|
|
|
|
|
|
+ export TARGET=FBX2glTF-linux-x86_64
|
|
|
|
+ mkdir $TARGET
|
|
|
|
+ cp sdk/Linux/2020.2/License.txt $TARGET/FBX-SDK-License.txt
|
|
|
|
+ cp LICENSE $TARGET/FBX2glTF-License.txt
|
|
|
|
+ cp build/FBX2glTF $TARGET/FBX2glTF-linux-x86_64
|
|
|
|
+ 7z a -r $TARGET.zip $TARGET
|
|
shell: bash
|
|
shell: bash
|
|
|
|
|
|
- name: Release
|
|
- name: Release
|
|
- if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
+ if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
with:
|
|
- files: |
|
|
|
|
- thirdparty-license.txt
|
|
|
|
- LICENSE
|
|
|
|
- FBX2glTF
|
|
|
|
|
|
+ files: FBX2glTF-linux-x86_64.zip
|
|
|
|
|
|
- - name: Archive results
|
|
|
|
|
|
+ - name: FBX2glTF-linux-x86_64
|
|
uses: actions/upload-artifact@v3
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
with:
|
|
- name: FBX2glTF
|
|
|
|
- path: FBX2glTF
|
|
|
|
|
|
+ name: FBX2glTF-linux-x86_64
|
|
|
|
+ path: FBX2glTF-linux-x86_64/*
|
|
|
|
|
|
- - name: thirdparty-license.txt
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
- with:
|
|
|
|
- name: thirdparty-license.txt
|
|
|
|
- path: thirdparty-license.txt
|
|
|
|
|
|
|
|
- - name: LICENSE
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
- with:
|
|
|
|
- name: LICENSE
|
|
|
|
- path: LICENSE
|
|
|
|
-
|
|
|
|
- build-macos-x86_64:
|
|
|
|
|
|
+ build-macos:
|
|
runs-on: macos-11
|
|
runs-on: macos-11
|
|
steps:
|
|
steps:
|
|
- name: Checkout
|
|
- name: Checkout
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
+ uses: actions/checkout@v3
|
|
|
|
|
|
- name: Update python
|
|
- name: Update python
|
|
- uses: actions/setup-python@v1
|
|
|
|
|
|
+ uses: actions/setup-python@v4
|
|
|
|
+ with:
|
|
|
|
+ python-version: '3'
|
|
|
|
|
|
- name: Install conan
|
|
- name: Install conan
|
|
run: |
|
|
run: |
|
|
@@ -294,36 +277,24 @@ jobs:
|
|
codesign -s - --options=runtime build/FBX2glTF
|
|
codesign -s - --options=runtime build/FBX2glTF
|
|
shell: bash
|
|
shell: bash
|
|
|
|
|
|
- - name: Copy licenses
|
|
|
|
|
|
+ - name: Prepare artifacts
|
|
run: |
|
|
run: |
|
|
- mkdir -p result
|
|
|
|
- cp sdk/Darwin/2020.2/License.rtf thirdparty-license.rtf
|
|
|
|
- cp build/FBX2glTF FBX2glTF-macos-x86_64
|
|
|
|
|
|
+ export TARGET=FBX2glTF-macos-x86_64
|
|
|
|
+ mkdir $TARGET
|
|
|
|
+ cp sdk/Darwin/2020.2/License.rtf $TARGET/FBX-SDK-License.rtf
|
|
|
|
+ cp LICENSE $TARGET/FBX2glTF-License.txt
|
|
|
|
+ cp build/FBX2glTF $TARGET/FBX2glTF-macos-x86_64
|
|
|
|
+ 7z a -r $TARGET.zip $TARGET
|
|
shell: bash
|
|
shell: bash
|
|
|
|
|
|
- name: Release
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
uses: softprops/action-gh-release@v1
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
with:
|
|
- files: |
|
|
|
|
- thirdparty-license.rtf
|
|
|
|
- LICENSE
|
|
|
|
- FBX2glTF-macos-x86_64
|
|
|
|
|
|
+ files: FBX2glTF-macos-x86_64.zip
|
|
|
|
|
|
- name: FBX2glTF-macos-x86_64
|
|
- name: FBX2glTF-macos-x86_64
|
|
uses: actions/upload-artifact@v3
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
with:
|
|
- name: macos-packages
|
|
|
|
- path: FBX2glTF-macos-x86_64
|
|
|
|
-
|
|
|
|
- - name: thirdparty-license.rtf
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
- with:
|
|
|
|
- name: thirdparty-license.rtf
|
|
|
|
- path: thirdparty-license.rtf
|
|
|
|
-
|
|
|
|
- - name: LICENSE
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
- with:
|
|
|
|
- name: LICENSE
|
|
|
|
- path: LICENSE
|
|
|
|
|
|
+ name: FBX2glTF-macos-x86_64
|
|
|
|
+ path: FBX2glTF-macos-x86_64/*
|