diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml deleted file mode 100644 index ab853a8..0000000 --- a/.github/workflows/build-ubuntu.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: "Build FBX2GLTF for Ubuntu." -on: [push, pull_request] -jobs: - build-ubuntu: - runs-on: ubuntu-latest - steps: - - name: Install conan - run: | - 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: Curl sdk - run: | - curl -O -L "https://github.com/V-Sekai/FBXSDK-Linux/archive/refs/tags/2020.2.zip" - shell: cmd - - - name: install 7z extract - run: | - 7z x 2020.2.zip - shell: cmd - - - name: move - run: | - mkdir -p sdk - mv ./FBXSDK-Windows-2020.2/sdk ./sdk - shell: bash - - - name: Decompress sdk - run: | - zstd -d -r --rm ./FBX2glTF/sdk - shell: cmd - - - name: Add conan remote - run: | - conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan - shell: cmd - - - name: Conan install - run: | - conan install . -i build -s build_type=Release -s --build fmt --build libiconv --build=libxml2 --build=zlib --build=bzip - shell: cmd - - - name: Conan build - run: | - conan build -bf build . - shell: cmd - - - uses: actions/upload-artifact@v2 - with: - name: FBX2glTF-linux - path: FBX2glTF/build/Release/FBX2glTF diff --git a/.github/workflows/build-win-10.yml b/.github/workflows/build.yml similarity index 50% rename from .github/workflows/build-win-10.yml rename to .github/workflows/build.yml index d80504b..ae208bd 100644 --- a/.github/workflows/build-win-10.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: "Build FBX2GLTF for Windows 10." +name: "Build FBX2GLTF for Ubuntu." on: [push, pull_request] jobs: build-win-10: @@ -70,3 +70,72 @@ jobs: with: name: FBX2glTF-windows-x64.exe path: FBX2glTF/build/Release/FBX2glTF.exe + build-ubuntu: + runs-on: ubuntu-latest + steps: + - name: Install conan + run: | + 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: Curl sdk + run: | + curl -O -L "https://github.com/V-Sekai/FBXSDK-Linux/archive/refs/tags/2020.2.zip" + shell: cmd + + - name: install 7z extract + run: | + 7z x 2020.2.zip + shell: cmd + + - name: move + run: | + mkdir -p sdk + mv ./FBXSDK-Windows-2020.2/sdk ./sdk + shell: bash + + - name: Decompress sdk + run: | + zstd -d -r --rm ./FBX2glTF/sdk + shell: cmd + + - name: Add conan remote + run: | + conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan + shell: cmd + + - name: Conan install + run: | + conan install . -i build -s build_type=Release -s --build fmt --build libiconv --build=libxml2 --build=zlib --build=bzip + shell: cmd + + - name: Conan build + run: | + conan build -bf build . + shell: cmd + + - uses: actions/upload-artifact@v2 + with: + name: FBX2glTF-linux + path: FBX2glTF/build/Release/FBX2glTF