Fit into Github Actions syntax.
This commit is contained in:
parent
9936e2bb26
commit
b6882e8f5a
|
@ -1,123 +1,122 @@
|
||||||
name: "Build FBX2GLTF for Windows 10."
|
name: "Build FBX2GLTF for Windows 10."
|
||||||
on: [push]
|
on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
steps:
|
||||||
steps:
|
- name: install conan
|
||||||
- name: install conan
|
run: |
|
||||||
run: |
|
python -m pip install --upgrade pip
|
||||||
python -m pip install --upgrade pip
|
pip install --upgrade conan
|
||||||
pip install --upgrade conan
|
shell: bash
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: setup conan profile
|
- name: setup conan profile
|
||||||
run: |
|
run: |
|
||||||
conan profile new default --detect
|
conan profile new default --detect
|
||||||
conan profile show default
|
conan profile show default
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: setup filter.lfs.required
|
- name: setup filter.lfs.required
|
||||||
run: |
|
run: |
|
||||||
git config --global filter.lfs.required false
|
git config --global filter.lfs.required false
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: setup filter.lfs.smudge
|
- name: setup filter.lfs.smudge
|
||||||
run: |
|
run: |
|
||||||
git config --global filter.lfs.smudge "git-lfs smudge --skip %f"
|
git config --global filter.lfs.smudge "git-lfs smudge --skip %f"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: setup filter.lfs.process
|
- name: setup filter.lfs.process
|
||||||
run: |
|
run: |
|
||||||
git config --global filter.lfs.process "git-lfs filter-process --skip"
|
git config --global filter.lfs.process "git-lfs filter-process --skip"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: install zstandard
|
- name: install zstandard
|
||||||
run: |
|
run: |
|
||||||
cinst zstandard
|
cinst zstandard
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: install FileDownload
|
- name: install FileDownload
|
||||||
run: |
|
run: |
|
||||||
Start-FileDownload 'https://github.com/V-Sekai/FBXSDK-Windows/archive/2020.2.tar.gz'
|
Start-FileDownload 'https://github.com/V-Sekai/FBXSDK-Windows/archive/2020.2.tar.gz'
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: install 7z expand
|
- name: install 7z expand
|
||||||
run: |
|
run: |
|
||||||
7z e 2020.2.tar.gz
|
7z e 2020.2.tar.gz
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: install 7z extract
|
- name: install 7z extract
|
||||||
run: |
|
run: |
|
||||||
7z x 2020.2.tar
|
7z x 2020.2.tar
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: move
|
- name: move
|
||||||
run: |
|
run: |
|
||||||
move -v .\FBXSDK-Windows-2020.2\sdk\ .
|
move -v .\FBXSDK-Windows-2020.2\sdk\ .
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: move
|
- name: move
|
||||||
run: |
|
run: |
|
||||||
zstd -d -r --rm sdk
|
zstd -d -r --rm sdk
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: Downloading conan
|
- name: Downloading conan
|
||||||
run: |
|
run: |
|
||||||
echo "Downloading conan..."
|
echo "Downloading conan..."
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Downloading conan
|
- name: Downloading conan
|
||||||
run: |
|
run: |
|
||||||
set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
|
set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Downloading conan
|
- name: Downloading conan
|
||||||
run: |
|
run: |
|
||||||
python --version
|
python --version
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Downloading conan
|
- name: Downloading conan
|
||||||
run: |
|
run: |
|
||||||
python --version
|
python --version
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Upgrade pip
|
- name: Upgrade pip
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Install conan
|
- name: Install conan
|
||||||
run: |
|
run: |
|
||||||
pip install conan
|
pip install conan
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Add conan remote
|
- name: Add conan remote
|
||||||
run: |
|
run: |
|
||||||
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
|
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Conan version
|
- name: Conan version
|
||||||
run: |
|
run: |
|
||||||
conan --version
|
conan --version
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Downloading conan
|
- name: Downloading conan
|
||||||
run: |
|
run: |
|
||||||
conan install . -i build -s build_type=Release -s compiler="Visual Studio" -s compiler.version=15 --build fmt --build boost_system --build boost_filesystem --build libiconv --build=libxml2 --build=zlib
|
conan install . -i build -s build_type=Release -s compiler="Visual Studio" -s compiler.version=15 --build fmt --build boost_system --build boost_filesystem --build libiconv --build=libxml2 --build=zlib
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Conan build
|
- name: Conan build
|
||||||
run: |
|
run: |
|
||||||
conan build -bf build .
|
conan build -bf build .
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Conan build
|
- name: Conan build
|
||||||
run: |
|
run: |
|
||||||
move build\Release\FBX2glTF.exe build\Release\FBX2glTF-windows-x64.exe
|
move build\Release\FBX2glTF.exe build\Release\FBX2glTF-windows-x64.exe
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: FBX2glTF.exe
|
name: FBX2glTF.exe
|
||||||
path: build/Release/FBX2glTF-windows-x64.exe
|
path: build/Release/FBX2glTF-windows-x64.exe
|
||||||
|
|
Loading…
Reference in New Issue