From 9936e2bb26410fb4bf96413339e5bec5018808bb Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Sun, 6 Jun 2021 17:18:52 -0700 Subject: [PATCH] Update Github workflows. --- .github/actions/build-win-10/action.yml | 121 ----------------------- .github/workflows/build-win-10.yml | 123 ++++++++++++++++++++++++ 2 files changed, 123 insertions(+), 121 deletions(-) delete mode 100644 .github/actions/build-win-10/action.yml create mode 100644 .github/workflows/build-win-10.yml diff --git a/.github/actions/build-win-10/action.yml b/.github/actions/build-win-10/action.yml deleted file mode 100644 index 2214a0b..0000000 --- a/.github/actions/build-win-10/action.yml +++ /dev/null @@ -1,121 +0,0 @@ -name: "Smoketest FBX2GLTF Windows" -description: "Build FBX2GLTF for Windows 10." -runs: - using: "composite" - steps: - - name: install conan - run: | - python -m pip install --upgrade pip - pip install --upgrade conan - shell: bash - - - name: setup conan profile - run: | - conan profile new default --detect - conan profile show default - shell: bash - - - name: setup filter.lfs.required - run: | - git config --global filter.lfs.required false - shell: bash - - - name: setup filter.lfs.smudge - run: | - git config --global filter.lfs.smudge "git-lfs smudge --skip %f" - shell: bash - - - name: setup filter.lfs.process - run: | - git config --global filter.lfs.process "git-lfs filter-process --skip" - shell: bash - - - name: install zstandard - run: | - cinst zstandard - shell: bash - - - name: install FileDownload - run: | - Start-FileDownload 'https://github.com/V-Sekai/FBXSDK-Windows/archive/2020.2.tar.gz' - shell: powershell - - - name: install 7z expand - run: | - 7z e 2020.2.tar.gz - shell: cmd - - - name: install 7z extract - run: | - 7z x 2020.2.tar - shell: cmd - - - name: move - run: | - move -v .\FBXSDK-Windows-2020.2\sdk\ . - shell: powershell - - - name: move - run: | - zstd -d -r --rm sdk - shell: powershell - - - name: Downloading conan - run: | - echo "Downloading conan..." - shell: cmd - - - name: Downloading conan - run: | - set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% - shell: cmd - - - name: Downloading conan - run: | - python --version - shell: cmd - - - name: Downloading conan - run: | - python --version - shell: cmd - - - name: Upgrade pip - run: | - python -m pip install --upgrade pip - shell: cmd - - - name: Install conan - run: | - pip install conan - shell: cmd - - - name: Add conan remote - run: | - conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan - shell: cmd - - - name: Conan version - run: | - conan --version - shell: cmd - - - name: Downloading conan - 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 - shell: cmd - - - name: Conan build - run: | - conan build -bf build . - shell: cmd - - - name: Conan build - run: | - move build\Release\FBX2glTF.exe build\Release\FBX2glTF-windows-x64.exe - shell: cmd - - - uses: actions/upload-artifact@v2 - with: - name: FBX2glTF.exe - path: build/Release/FBX2glTF-windows-x64.exe diff --git a/.github/workflows/build-win-10.yml b/.github/workflows/build-win-10.yml new file mode 100644 index 0000000..adbf2a7 --- /dev/null +++ b/.github/workflows/build-win-10.yml @@ -0,0 +1,123 @@ +name: "Build FBX2GLTF for Windows 10." +on: [push] +jobs: + build: + runs-on: windows-latest + strategy: + steps: + - name: install conan + run: | + python -m pip install --upgrade pip + pip install --upgrade conan + shell: bash + + - name: setup conan profile + run: | + conan profile new default --detect + conan profile show default + shell: bash + + - name: setup filter.lfs.required + run: | + git config --global filter.lfs.required false + shell: bash + + - name: setup filter.lfs.smudge + run: | + git config --global filter.lfs.smudge "git-lfs smudge --skip %f" + shell: bash + + - name: setup filter.lfs.process + run: | + git config --global filter.lfs.process "git-lfs filter-process --skip" + shell: bash + + - name: install zstandard + run: | + cinst zstandard + shell: bash + + - name: install FileDownload + run: | + Start-FileDownload 'https://github.com/V-Sekai/FBXSDK-Windows/archive/2020.2.tar.gz' + shell: powershell + + - name: install 7z expand + run: | + 7z e 2020.2.tar.gz + shell: cmd + + - name: install 7z extract + run: | + 7z x 2020.2.tar + shell: cmd + + - name: move + run: | + move -v .\FBXSDK-Windows-2020.2\sdk\ . + shell: powershell + + - name: move + run: | + zstd -d -r --rm sdk + shell: powershell + + - name: Downloading conan + run: | + echo "Downloading conan..." + shell: cmd + + - name: Downloading conan + run: | + set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% + shell: cmd + + - name: Downloading conan + run: | + python --version + shell: cmd + + - name: Downloading conan + run: | + python --version + shell: cmd + + - name: Upgrade pip + run: | + python -m pip install --upgrade pip + shell: cmd + + - name: Install conan + run: | + pip install conan + shell: cmd + + - name: Add conan remote + run: | + conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan + shell: cmd + + - name: Conan version + run: | + conan --version + shell: cmd + + - name: Downloading conan + 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 + shell: cmd + + - name: Conan build + run: | + conan build -bf build . + shell: cmd + + - name: Conan build + run: | + move build\Release\FBX2glTF.exe build\Release\FBX2glTF-windows-x64.exe + shell: cmd + + - uses: actions/upload-artifact@v2 + with: + name: FBX2glTF.exe + path: build/Release/FBX2glTF-windows-x64.exe