Skip to content

Commit

Permalink
enable github action
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 84475d7
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 14:42:42 2020 +0800

    test github action

commit 7bdba82
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 14:39:41 2020 +0800

    test github action

commit 9d2fd73
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 14:38:06 2020 +0800

    test github action

commit c3b719b
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 14:32:41 2020 +0800

    test github action

commit 6b35c56
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 14:25:10 2020 +0800

    test github action

commit 84e7052
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 14:09:11 2020 +0800

    test github action

commit 3f80071
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 13:55:15 2020 +0800

    test github action

commit ae07a61
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 13:45:19 2020 +0800

    test

commit e7bea6b
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 13:33:35 2020 +0800

    build for develop

commit fade447
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 13:32:38 2020 +0800

    build for develop

commit 2f0ee61
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 13:22:23 2020 +0800

    fix github action for iphoneos

commit 1fe0efe
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 13:09:10 2020 +0800

    update for github action

commit ce0aad3
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 13:05:21 2020 +0800

    update readme

commit 43ce882
Author: Alex Chi <alexchi@c4g.io>
Date:   Wed Oct 14 12:58:20 2020 +0800

    update github action - print the folder
  • Loading branch information
alexchicn committed Oct 14, 2020
1 parent dca14ec commit 0695118
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: 'build'

on:
push:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/builddevelop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'build develop'

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
windows_win64:
name: 'for windows win64'
runs-on: windows-latest
steps:
- name: 'checkout the project'
uses: actions/checkout@v2
- name: 'update submodules'
run: |
git submodule update --init external/rapidjson
git submodule update --init external/draco
- name: 'add msbuild'
uses: microsoft/setup-msbuild@v1.0.2
- name: 'build and make'
run: |
mkdir build && cd build/
mkdir win64 && cd win64/
cmake -G "Visual Studio 16 2019" -A "x64" -DLIBGLTF_BUILD_RUNTEST=FALSE -DLIBGLTF_USE_GOOGLE_DRACO=TRUE -DLIBGLTF_USE_GOOGLE_DRACO_SUBMODULE=TRUE ../../
msbuild libgltf.sln /t:Build /p:Configuration="Release" /p:Platform="x64"
msbuild libgltf.sln /t:Build /p:Configuration="RelWithDebInfo" /p:Platform="x64"
cd ../
cd ../
- name: 'ready artifact'
run: |
xcopy /D /S /Y external\draco\src\draco\*.h output\include\draco\
xcopy /D /S /Y build\win64\draco\*.h output\include\draco\
xcopy /D /S /Y build\win64\external\draco\Release\dracodec.lib output\lib\win64\Release\
xcopy /D /S /Y build\win64\external\draco\RelWithDebInfo\dracodec.lib output\lib\win64\RelWithDebInfo\
- name: 'upload artifact'
uses: actions/upload-artifact@v1.0.0
with:
name: libgltf.win64.windows
path: output/
18 changes: 9 additions & 9 deletions .github/workflows/buildwithdraco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
cd ..
- name: 'ready artifact'
run: |
rsync -a --include='*.h' -f 'hide,! */' build/draco/ output/include/draco/
rsync -a --include='*.h' -f 'hide,! */' external/draco/src/draco/ output/include/draco/
cp -a build/external/draco/dracodec.a output/lib/linux/dracodec.a
- name: 'upload artifact'
Expand All @@ -50,6 +51,7 @@ jobs:
cd ..
- name: 'ready artifact'
run: |
rsync -a --include='*.h' -f 'hide,! */' build/draco/ output/include/draco/
rsync -a --include='*.h' -f 'hide,! */' external/draco/src/draco/ output/include/draco/
cp build/external/draco/dracodec.a output/lib/macos/dracodec.a
- name: 'upload artifact'
Expand Down Expand Up @@ -78,8 +80,9 @@ jobs:
cd ../
- name: 'ready artifact'
run: |
rsync -a --include='*.h' -f 'hide,! */' build/iphoneos/draco/ output/include/draco/
rsync -a --include='*.h' -f 'hide,! */' external/draco/src/draco/ output/include/draco/
cp build/iphoneos/external/draco/dracodec.a output/lib/ios_OS/dracodec.a
cp build/iphoneos/external/draco/dracodec.a output/lib/ios/os/dracodec.a
- name: 'upload artifact'
uses: actions/upload-artifact@v1.0.0
with:
Expand All @@ -102,19 +105,16 @@ jobs:
mkdir build && cd build/
mkdir win64 && cd win64/
cmake -G "Visual Studio 16 2019" -A "x64" -DLIBGLTF_BUILD_RUNTEST=FALSE -DLIBGLTF_USE_GOOGLE_DRACO=TRUE -DLIBGLTF_USE_GOOGLE_DRACO_SUBMODULE=TRUE ../../
msbuild libgltf.sln /t:Build /p:Configuration="RelWithDebInfo" /p:Platform="x64"
msbuild libgltf.sln /t:Build /p:Configuration="Release" /p:Platform="x64"
msbuild libgltf.sln /t:Build /p:Configuration="RelWithDebInfo" /p:Platform="x64"
cd ../
cd ../
- name: 'ready artifact'
run: |
xcopy external\draco\src\draco\*.h output\include\draco\ /E/H/C/I/D/S/Y
dir build\
dir build\win64\
dir build\win64\external\draco
xcopy build\win64\draco\ output\include\draco\ /E/H/C/I/D/S/Y
xcopy build\win64\external\draco\RelWithDebInfo\ output\lib\win64\RelWithDebInfo\ /E/H/C/I/D/S/Y
xcopy build\win64\external\draco\Release\ output\lib\win64\Release\ /E/H/C/I/D/S/Y
xcopy /D /S /Y external\draco\src\draco\*.h output\include\draco\
xcopy /D /S /Y build\win64\draco\*.h output\include\draco\
xcopy /D /S /Y build\win64\external\draco\Release\dracodec.lib output\lib\win64\Release\
xcopy /D /S /Y build\win64\external\draco\RelWithDebInfo\dracodec.lib output\lib\win64\RelWithDebInfo\
- name: 'upload artifact'
uses: actions/upload-artifact@v1.0.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: 'coverage'

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND ${LIBGLTF_PLATFORM_IOS})
add_definitions(-DLIBGLTF_PLATFORM_IOS)
set(DYNAMIC_LIBRARY_EXTENSION ".dylib")
set(STATIC_LIBRARY_EXTENSION ".a")
set(PLATFORM_NAME "ios_${IOS_PLATFORM}")
set(PLATFORM_NAME "ios")
set(CMAKE_C_FLAGS "-Wall -Wextra -Wshadow -Wconversion -Wno-long-long -pedantic ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wno-long-long -pedantic ${CMAKE_CXX_FLAGS}")
set(CMAKE_STATIC_LIBRARY_PREFIX "")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[![libgltf document](https://readthedocs.org/projects/libgltf/badge/?version=latest)](http://libgltf.rtfd.io/)
[![visit milestones](https://img.shields.io/badge/visit-milestones-blue.svg?style=flat)](https://github.com/code4game/libgltf/milestones)

[![build with draco](https://github.com/code4game/libgltf/workflows/build%20with%20draco/badge.svg)](https://github.com/code4game/libgltf/actions?query=workflow%3A%22build+with+draco%22)
[![build](https://github.com/code4game/libgltf/workflows/build/badge.svg)](https://github.com/code4game/libgltf/actions?query=workflow%3Abuild)
[![build with draco](https://github.com/code4game/libgltf/workflows/build%20with%20draco/badge.svg)](https://github.com/code4game/libgltf/actions?query=workflow%3A%22build+with+draco%22)

[![Coverage status from coveralls](https://coveralls.io/repos/github/code4game/libgltf/badge.svg?branch=master)](https://coveralls.io/github/code4game/libgltf?branch=master)
[![Codacy](https://api.codacy.com/project/badge/Grade/fa7ee9a5bc9b4befb703298ca721bc9a)](https://www.codacy.com/app/code4game/libgltf?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=code4game/libgltf&amp;utm_campaign=Badge_Grade)
Expand Down
2 changes: 1 addition & 1 deletion source/libgltf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ endif()
if(${LIBGLTF_PLATFORM_WINDOWS})
add_custom_command(TARGET libgltf
POST_BUILD
COMMAND xcopy ARGS "/D /S /Y \"${ROOT_PATH}/include\" \"${OUT_PATH}/include\\\""
COMMAND xcopy ARGS "/D /S /Y \"${ROOT_PATH}\\include\\*\" \"${OUT_PATH}\\include\\\""
COMMENT "sync the head file"
)
else()
Expand Down

0 comments on commit 0695118

Please sign in to comment.