-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from biojppm/update_c4core
[chore] update c4core
- Loading branch information
Showing
6 changed files
with
157 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# this is a work in progress | ||
name: create_c4_pack | ||
|
||
on: | ||
- push | ||
- workflow_dispatch | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
createPack: | ||
# https://github.community/t/create-matrix-with-multiple-os-and-env-for-each-one/16895/6 | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: macos-latest | ||
- os: ubuntu-latest | ||
- os: windows-latest | ||
|
||
steps: | ||
|
||
# Get latest CMake and ninja | ||
# https://github.com/marketplace/actions/get-cmake | ||
- name: Get cmake+ninja | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: {submodules: recursive} | ||
|
||
- name: show versions | ||
# Use a bash shell so we can use the same syntax for environment variable | ||
# access regardless of the host operating system | ||
shell: bash | ||
run: | | ||
cmake --version | ||
echo "SRC_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV | ||
echo "TEST_DIR=${{runner.workspace}}/build/test" >> $GITHUB_ENV | ||
echo "PACK_DIR=${{runner.workspace}}/build/pack" >> $GITHUB_ENV | ||
cmake -E echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" | ||
cmake -E echo "runner.workspace=${{runner.workspace}}" | ||
cmake -E echo "SRC_DIR=$SRC_DIR" | ||
cmake -E echo "TEST_DIR=$TEST_DIR" | ||
cmake -E echo "PACK_DIR=$PACK_DIR" | ||
- name: create build dirs | ||
shell: bash | ||
run: | | ||
cmake -E echo "SRC_DIR=$SRC_DIR" | ||
cmake -E echo "TEST_DIR=$TEST_DIR" | ||
cmake -E echo "PACK_DIR=$PACK_DIR" | ||
cmake -E make_directory $PACK_DIR | ||
cmake -E make_directory $TEST_DIR | ||
# run the tests first | ||
- name: configure_test | ||
shell: bash | ||
run: cmake -S $SRC_DIR -B $TEST_DIR -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DRYML_BUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$TEST_DIR/../install_test | ||
|
||
- name: build_test | ||
shell: bash | ||
run: cmake --build $TEST_DIR --config $BUILD_TYPE --parallel --target test-build | ||
|
||
- name: run_test | ||
shell: bash | ||
run: cmake --build $TEST_DIR --config $BUILD_TYPE --target test | ||
|
||
|
||
# if the tests succeed, build and create the pack. | ||
# We do not pack the test directory because it brings | ||
# third party projects (eg gtest) into cmake. | ||
- name: configure_pack | ||
shell: bash | ||
run: cmake -S $SRC_DIR -B $PACK_DIR -DCMAKE_BUILD_TYPE=$BUILD_TYPE | ||
|
||
- name: build_pack | ||
shell: bash | ||
run: cmake --build $PACK_DIR --config $BUILD_TYPE --parallel | ||
|
||
- name: create_pack | ||
shell: bash | ||
run: | | ||
cd $PACK_DIR | ||
cpack -C $BUILD_TYPE --verbose |
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
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
Submodule c4core
updated
24 files
+0 −127 | .ci/travis-install.sh | |
+0 −126 | .ci/travis-setenv.sh | |
+0 −0 | .github/.travis.yml.old | |
+0 −0 | .github/appveyor.yml.old | |
+154 −0 | .github/reqs.sh | |
+264 −0 | .github/setenv.sh | |
+0 −0 | .github/vagrant/Vagrantfile | |
+71 −0 | .github/vagrant/macos/Vagrantfile | |
+0 −0 | .github/vagrant/vagrant-provision.sh | |
+647 −0 | .github/workflows/run_tests.yml | |
+1 −0 | .gitignore | |
+1 −1 | .gitmodules | |
+14 −11 | CMakeLists.txt | |
+1 −2 | README.md | |
+1 −1 | cmake | |
+22 −17 | src/c4/charconv.hpp | |
+2 −2 | src/c4/error.hpp | |
+0 −0 | src/c4/ext/debugbreak | |
+0 −0 | src/c4/ext/sg14/README.md | |
+0 −0 | src/c4/ext/sg14/inplace_function.h | |
+8 −2 | src/c4/format.hpp | |
+2 −2 | src/c4/memory_resource.cpp | |
+2 −2 | src/c4/time.hpp | |
+17 −3 | test/test_charconv.cpp |
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
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