ci: disable tipi.build

This commit is contained in:
Mark Gillard 2022-10-14 13:29:12 +03:00
parent 698ee0ecd1
commit 0435135403

View File

@ -148,56 +148,55 @@ jobs:
- name: Test - name: Test
run: meson test -C build --verbose run: meson test -C build --verbose
# tipi-build-linux:
tipi-build-linux: # name: tipi.build project build and dependency resolution
name: tipi.build project build and dependency resolution # runs-on: ubuntu-latest
runs-on: ubuntu-latest # if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' # container: tipibuild/tipi-ubuntu
container: tipibuild/tipi-ubuntu #
# env:
env: # HOME: /root
HOME: /root #
# steps:
steps: # - uses: actions/checkout@v3
- uses: actions/checkout@v3 # - run: mkdir -p ~/.tipi
- run: mkdir -p ~/.tipi #
# # checking if the tomlplusplus project builds and passes tests
# checking if the tomlplusplus project builds and passes tests # - name: Build as project target linux-cxx17 (run tests 'odr_test_1' and 'main')
- name: Build as project target linux-cxx17 (run tests 'odr_test_1' and 'main') # run: tipi . --dont-upgrade --verbose -t linux-cxx17 --test "odr_test_1|main"
run: tipi . --dont-upgrade --verbose -t linux-cxx17 --test "odr_test_1|main" #
# - name: Build as project target linux-cxx20 (run tests 'odr_test_1' and 'main')
- name: Build as project target linux-cxx20 (run tests 'odr_test_1' and 'main') # run: tipi . --dont-upgrade --verbose -t linux-cxx20 --test "odr_test_1|main"
run: tipi . --dont-upgrade --verbose -t linux-cxx20 --test "odr_test_1|main" #
# - name: Cleanup project builds
- name: Cleanup project builds # run: rm -r ./build
run: rm -r ./build #
# - name: "Get branch name and save to env"
- name: "Get branch name and save to env" # env:
env: # IS_PR: ${{ github.EVENT_NAME == 'pull_request' }}
IS_PR: ${{ github.EVENT_NAME == 'pull_request' }} # run: |
run: | # if ${IS_PR}; then
if ${IS_PR}; then # BRANCH_NAME="${GITHUB_HEAD_REF}"
BRANCH_NAME="${GITHUB_HEAD_REF}" # else
else # BRANCH_NAME="${GITHUB_REF##*/}"
BRANCH_NAME="${GITHUB_REF##*/}" # fi
fi # echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV #
# # trying if pulling the dependency with tipi works properly
# trying if pulling the dependency with tipi works properly # - name: Build as dependency
- name: Build as dependency # run: |
run: | # cd examples/
cd examples/ #
# # create test directory and copy the simple_parser.cpp in there
# create test directory and copy the simple_parser.cpp in there # mkdir test-as-dep
mkdir test-as-dep # cp examples.h test-as-dep/.
cp examples.h test-as-dep/. # cp simple_parser.cpp test-as-dep/.
cp simple_parser.cpp test-as-dep/. # cd test-as-dep/
cd test-as-dep/ #
# # create a deps file referencing the commit that triggered this build as dependency
# create a deps file referencing the commit that triggered this build as dependency # mkdir .tipi
mkdir .tipi # echo '{ "requires": { "${{ github.event.repository.full_name }}": { "@": "${{ env.BRANCH_NAME }}" } } }' > .tipi/deps
echo '{ "requires": { "${{ github.event.repository.full_name }}": { "@": "${{ env.BRANCH_NAME }}" } } }' > .tipi/deps #
# # build
# build # tipi . --dont-upgrade --verbose -t linux-cxx17
tipi . --dont-upgrade --verbose -t linux-cxx17 # ./build/linux-cxx17/bin/simple_parser ../example.toml
./build/linux-cxx17/bin/simple_parser ../example.toml