tjsConfig: Explicitly include limits.h #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name" : "Continuous Integration", | |
"on" : { | |
"push" : { | |
"paths" : [ | |
"**.c", | |
"**.h", | |
"**.cpp", | |
"**.hpp", | |
"**.build", | |
"**.in", | |
"**.yml", | |
"Makefile" | |
] | |
}, | |
"pull_request" : { | |
"paths" : [ | |
"**.c", | |
"**.h", | |
"**.cpp", | |
"**.hpp", | |
"**.build", | |
"**.in", | |
"**.yml", | |
"Makefile" | |
] | |
} | |
}, | |
"jobs" : { | |
"build-win32" : { | |
"runs-on" : "ubuntu-latest", | |
"container" : { | |
"image" : "ghcr.io/uyjulian/tvp_win32_build_container:latest", | |
"options" : "--user 1001:123" | |
}, | |
"defaults" : { | |
"run" : { | |
"shell" : "bash" | |
} | |
}, | |
"strategy" : { | |
"matrix" : { | |
"platform" : [ | |
{ | |
"triplet" : "i686-w64-mingw32", | |
"cmake-system-compiler" : "i686", | |
"target-arch" : "intel32", | |
"compiler" : "gcc" | |
}, | |
{ | |
"triplet" : "x86_64-w64-mingw32", | |
"cmake-system-compiler" : "amd64", | |
"target-arch" : "intel64", | |
"compiler" : "gcc" | |
}, | |
{ | |
"triplet" : "i686-w64-mingw32", | |
"cmake-system-compiler" : "i686", | |
"target-arch" : "intel32", | |
"compiler" : "clang" | |
}, | |
{ | |
"triplet" : "x86_64-w64-mingw32", | |
"cmake-system-compiler" : "amd64", | |
"target-arch" : "intel64", | |
"compiler" : "clang" | |
}, | |
{ | |
"triplet" : "armv7-w64-mingw32", | |
"cmake-system-compiler" : "arm", | |
"target-arch" : "arm32", | |
"compiler" : "clang" | |
}, | |
{ | |
"triplet" : "aarch64-w64-mingw32", | |
"cmake-system-compiler" : "arm64", | |
"target-arch" : "arm64", | |
"compiler" : "clang" | |
} | |
] | |
} | |
}, | |
"timeout-minutes" : 30, | |
"env" : { | |
"HOMEBREW_NO_ANALYTICS" : "1", | |
"HOMEBREW_NO_AUTO_UPDATE" : "1", | |
"HOMEBREW_NO_INSTALL_UPGRADE" : "1", | |
"HOMEBREW_NO_INSTALL_CLEANUP" : "1" | |
}, | |
"steps" : [ | |
{ | |
"name" : "Checkout repository", | |
"uses" : "actions/checkout@v2", | |
"with" : { | |
"submodules" : "recursive" | |
} | |
}, | |
{ | |
"name" : "Set up mingw-w64 for Clang", | |
"if" : "matrix.platform.compiler == 'clang'", | |
"run" : "echo \"/opt/llvm-mingw/bin\" >> $GITHUB_PATH" | |
}, | |
{ | |
"name" : "Compile project", | |
"run" : "make TARGET_ARCH=${{ matrix.platform.target-arch }} ARCHIVE=\\$\\(PROJECT_BASENAME\\).${{ matrix.platform.target-arch }}.${{ matrix.platform.compiler }}.7z archive -j$(getconf _NPROCESSORS_ONLN)" | |
}, | |
{ | |
"name" : "Upload artifact", | |
"uses" : "actions/upload-artifact@master", | |
"with" : { | |
"name" : "binary-win32-${{ matrix.platform.target-arch }}-${{ matrix.platform.compiler }}", | |
"path" : "**/**.${{ matrix.platform.target-arch }}.${{ matrix.platform.compiler }}.7z" | |
} | |
} | |
] | |
}, | |
"create-release" : { | |
"needs" : [ | |
"build-win32" | |
], | |
"runs-on" : "ubuntu-latest", | |
"timeout-minutes" : 5, | |
"if" : "startsWith(github.ref, 'refs/tags/v')", | |
"steps" : [ | |
{ | |
"name" : "Download all artifacts", | |
"uses" : "actions/download-artifact@v3" | |
}, | |
{ | |
"name" : "Create release", | |
"if" : "startsWith(github.ref, 'refs/tags/v')", | |
"uses" : "marvinpinto/action-automatic-releases@latest", | |
"with" : { | |
"repo_token" : "${{ secrets.GITHUB_TOKEN }}", | |
"prerelease" : "${{ contains(github.ref, '-rc') }}", | |
"files" : "**/**.7z" | |
} | |
} | |
] | |
} | |
} | |
} |