From 7444d2df95f8a902a77571e632643a222417da7c Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sat, 15 Jun 2024 19:35:01 +0900 Subject: [PATCH] ci: reset all ci setup --- .circleci/config.yml | 88 ---------- .clusterfuzzlite/Dockerfile | 6 - .clusterfuzzlite/README.md | 3 - .clusterfuzzlite/build.sh | 6 - .clusterfuzzlite/parse_fuzzer.cpp | 16 -- .clusterfuzzlite/project.yaml | 1 - .github/workflows/cflite_pr.yml | 30 ---- .github/workflows/main.yml | 256 ------------------------------ appveyor.yml | 25 --- 9 files changed, 431 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100644 .clusterfuzzlite/Dockerfile delete mode 100644 .clusterfuzzlite/README.md delete mode 100644 .clusterfuzzlite/build.sh delete mode 100644 .clusterfuzzlite/parse_fuzzer.cpp delete mode 100644 .clusterfuzzlite/project.yaml delete mode 100644 .github/workflows/cflite_pr.yml delete mode 100644 .github/workflows/main.yml delete mode 100644 appveyor.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index cd77392..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,88 +0,0 @@ -version: 2.1 - -jobs: - test_suite: - docker: - - image: cimg/go:1.16 - steps: - - checkout - - run: - command: | - g++ --version - cd tests/ - g++ -std=c++11 -O2 -Wall -Wextra -Werror -I../ check_toml_test.cpp -o check_toml_test - export PATH=$(pwd):${PATH} - git clone --depth 1 --branch v1.3.0 https://github.com/BurntSushi/toml-test.git - cd toml-test/ - go install -v ./cmd/toml-test - cd - - toml-test check_toml_test -# go clean -modcache -# go get github.com/BurntSushi/toml-test/cmd/toml-test -# $GOPATH/bin/toml-test ./check_toml_test - test_serialization: - docker: - - image: circleci/buildpack-deps:bionic - steps: - - checkout - - run: - command: | - g++ --version - cd tests/ - g++ -std=c++11 -O2 -Wall -Wextra -Wpedantic -Werror -I../ check_serialization.cpp -o check_serialization - git clone https://github.com/BurntSushi/toml-test.git - cp check_serialization toml-test/tests/valid - cd toml-test/tests/valid - for f in $(ls ./*.toml); - do echo "==> ${f}"; - cat ${f}; - echo "---------------------------------------"; - ./check_serialization ${f}; - if [ $? -ne 0 ] ; then - exit 1 - fi - echo "======================================="; - done - output_result: - docker: - - image: circleci/buildpack-deps:bionic - steps: - - checkout - - run: - command: | - g++ --version - cd tests/ - g++ -std=c++11 -O2 -Wall -Wextra -Wpedantic -Werror -I../ check.cpp -o check - git clone https://github.com/BurntSushi/toml-test.git - cp check toml-test/tests/invalid - cp check toml-test/tests/valid - cd toml-test/tests/invalid - for f in $(ls ./*.toml); - do echo "==> ${f}"; - cat ${f}; - echo "---------------------------------------"; - ./check ${f} invalid; - if [ $? -ne 0 ] ; then - exit 1 - fi - echo "======================================="; - done - cd ../valid - for f in $(ls ./*.toml); - do echo "==> ${f}"; - cat ${f}; - echo "---------------------------------------"; - ./check ${f} valid; - if [ $? -ne 0 ] ; then - exit 1 - fi - echo "======================================="; - done - -workflows: - version: 2.1 - test: - jobs: - - test_suite - - test_serialization - - output_result diff --git a/.clusterfuzzlite/Dockerfile b/.clusterfuzzlite/Dockerfile deleted file mode 100644 index 4206e01..0000000 --- a/.clusterfuzzlite/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM gcr.io/oss-fuzz-base/base-builder -RUN apt-get update && apt-get install -y make autoconf automake libtool - -COPY . $SRC/toml11 -COPY .clusterfuzzlite/build.sh $SRC/build.sh -WORKDIR $SRC/toml11 diff --git a/.clusterfuzzlite/README.md b/.clusterfuzzlite/README.md deleted file mode 100644 index 4ee95c0..0000000 --- a/.clusterfuzzlite/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ClusterFuzzLite set up - -This folder contains a fuzzing set for [ClusterFuzzLite](https://google.github.io/clusterfuzzlite). diff --git a/.clusterfuzzlite/build.sh b/.clusterfuzzlite/build.sh deleted file mode 100644 index c6d57fd..0000000 --- a/.clusterfuzzlite/build.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -eu -# Copy fuzzer executable to $OUT/ -$CXX $CFLAGS $LIB_FUZZING_ENGINE \ - $SRC/toml11/.clusterfuzzlite/parse_fuzzer.cpp \ - -o $OUT/parse_fuzzer \ - -I$SRC/toml11/ diff --git a/.clusterfuzzlite/parse_fuzzer.cpp b/.clusterfuzzlite/parse_fuzzer.cpp deleted file mode 100644 index 23bda4d..0000000 --- a/.clusterfuzzlite/parse_fuzzer.cpp +++ /dev/null @@ -1,16 +0,0 @@ - -#include - -#include -#include - -extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { - std::string s(reinterpret_cast(data), size); - std::istringstream iss(s); - try { - const auto ref = toml::parse(iss); - } catch (...) { - } - - return 0; -} diff --git a/.clusterfuzzlite/project.yaml b/.clusterfuzzlite/project.yaml deleted file mode 100644 index b478801..0000000 --- a/.clusterfuzzlite/project.yaml +++ /dev/null @@ -1 +0,0 @@ -language: c++ diff --git a/.github/workflows/cflite_pr.yml b/.github/workflows/cflite_pr.yml deleted file mode 100644 index 541a6ce..0000000 --- a/.github/workflows/cflite_pr.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: ClusterFuzzLite PR fuzzing -on: - workflow_dispatch: - pull_request: - branches: [ master ] -permissions: read-all -jobs: - PR: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - sanitizer: [address] - steps: - - name: Build Fuzzers (${{ matrix.sanitizer }}) - id: build - uses: google/clusterfuzzlite/actions/build_fuzzers@v1 - with: - sanitizer: ${{ matrix.sanitizer }} - language: c++ - bad-build-check: false - - name: Run Fuzzers (${{ matrix.sanitizer }}) - id: run - uses: google/clusterfuzzlite/actions/run_fuzzers@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - fuzz-seconds: 240 - mode: 'code-change' - report-unreproducible-crashes: false - sanitizer: ${{ matrix.sanitizer }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 28a2c6a..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,256 +0,0 @@ -name: build - -on: [push, pull_request] - -jobs: - build-linux-gcc: - runs-on: Ubuntu-22.04 - strategy: - matrix: - compiler: ['g++-12', 'g++-11', 'g++-10', 'g++-9'] - standard: ['11', '14', '17', '20'] - unreleased: ['ON', 'OFF'] - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: true - - name: Install - run: | - sudo apt-add-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install libboost-test-dev - sudo apt-get install language-pack-fr # test serializer w/ locale - sudo apt-get install ${{ matrix.compiler }} - - name: Configure - run: | - mkdir build && cd build - cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} - - name: Build - run: | - cd build && cmake --build . - - name: Test - run: | - cd build && ctest --output-on-failure - build-linux-clang: - runs-on: Ubuntu-22.04 - strategy: - matrix: - compiler: ['15', '14', '13', '12', '11'] - standard: ['11', '14', '17', '20'] - unreleased: ['ON', 'OFF'] - exclude: - - {compiler: '14', standard: '20'} # to avoid using gcc-13 libstdc++ - - {compiler: '13', standard: '20'} # with older clang - - {compiler: '12', standard: '20'} - - {compiler: '11', standard: '20'} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: true - - name: Install - run: | - sudo apt-add-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install libboost-test-dev - sudo apt-get install language-pack-fr # test serializer w/ locale - sudo apt-get install clang-${{ matrix.compiler }} - - name: Configure - run: | - mkdir build && cd build - cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_C_COMPILER=clang-${{ matrix.compiler }} -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} - - name: Build - run: | - cd build && cmake --build . - - name: Test - run: | - cd build && ctest --output-on-failure - - build-linux-old-gcc: - runs-on: Ubuntu-20.04 - strategy: - matrix: - compiler: ['g++-8', 'g++-7'] - standard: ['11', '14', '17', '20'] - unreleased: ['ON', 'OFF'] - exclude: - - {compiler: 'g++-7', standard: '20'} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: true - - name: Install - run: | - sudo apt-add-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install libboost-test-dev - sudo apt-get install language-pack-fr # test serializer w/ locale - sudo apt-get install ${{ matrix.compiler }} - - name: Configure - run: | - mkdir build && cd build - if [[ "${{ matrix.compiler }}" == "g++-8" && ( "${{ matrix.standard }}" == "17" || "${{ matrix.standard }}" == "20" ) ]] ; then - cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_REQUIRE_FILESYSTEM_LIBRARY=ON -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} - else - cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} - fi - - name: Build - run: | - cd build && cmake --build . - - name: Test - run: | - cd build && ctest --output-on-failure - - build-linux-old-clang: - runs-on: Ubuntu-20.04 - strategy: - matrix: - compiler: ['10', '9', '8', '7', '6.0'] - standard: ['11', '14', '17', '20'] - unreleased: ['ON', 'OFF'] - exclude: - - {compiler: '6.0', standard: '20'} - - {compiler: '7', standard: '20'} - - {compiler: '8', standard: '20'} - - {compiler: '9', standard: '20'} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: true - - name: Install - run: | - sudo apt-add-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install libboost-test-dev - sudo apt-get install language-pack-fr # test serializer w/ locale - sudo apt-get install clang-${{ matrix.compiler }} - - name: Configure - run: | - mkdir build && cd build - cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_C_COMPILER=clang-${{ matrix.compiler }} -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} - - name: Build - run: | - cd build && cmake --build . - - name: Test - run: | - cd build && ctest --output-on-failure - -# build-osx-13-arm64: -# runs-on: macos-13-arm64 -# strategy: -# matrix: -# standard: ['11', '14', '17', '20'] -# unreleased: ['ON', 'OFF'] -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# with: -# submodules: true -# - name: Install -# run: | -# brew install boost -# - name: Configure -# run: | -# mkdir build && cd build -# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} -# - name: Build -# run: | -# cd build && cmake --build . -# - name: Test -# run: | -# cd build && ctest --output-on-failure - - build-osx-13: - runs-on: macos-13 - strategy: - matrix: - standard: ['11', '14', '17', '20'] - unreleased: ['ON', 'OFF'] - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: true - - name: Install - run: | - brew install boost - env: - HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 - - name: Configure - run: | - mkdir build && cd build - cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} - - name: Build - run: | - cd build && cmake --build . - - name: Test - run: | - cd build && ctest --output-on-failure - - build-osx-12: - runs-on: macos-12 - strategy: - matrix: - standard: ['11', '14', '17', '20'] - unreleased: ['ON', 'OFF'] - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: true - - name: Install - run: | - brew install boost - - name: Configure - run: | - mkdir build && cd build - cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} - - name: Build - run: | - cd build && cmake --build . - - name: Test - run: | - cd build && ctest --output-on-failure - - build-windows-msvc: - runs-on: windows-2022 - strategy: - matrix: - standard: ['11', '14', '17', '20'] - config: ['Release', 'Debug'] - unreleased: ['ON', 'OFF'] - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: true - - name: Install - run: | - (New-Object System.Net.WebClient).DownloadFile("https://github.com/actions/boost-versions/releases/download/1.72.0-20200608.4/boost-1.72.0-win32-msvc14.2-x86_64.tar.gz", "$env:TEMP\\boost.tar.gz") - 7z.exe x "$env:TEMP\\boost.tar.gz" -o"$env:TEMP\\boostArchive" -y | Out-Null - 7z.exe x "$env:TEMP\\boostArchive" -o"$env:TEMP\\boost" -y | Out-Null - Push-Location -Path "$env:TEMP\\boost" - Invoke-Expression .\\setup.ps1 - - uses: ilammy/msvc-dev-cmd@v1 - - name: Configure - shell: cmd - run: | - file --mime-encoding tests/test_literals.cpp - mkdir build - cd build - cmake ../ -G "NMake Makefiles" -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DBoost_NO_BOOST_CMAKE=ON -DBOOST_ROOT="C:\\hostedtoolcache\\windows\\Boost\\1.72.0\\x86_64" -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }} - - name: Build - working-directory: ./build - run: | - cmake --build . --config "${{ matrix.config }}" - - name: Test - working-directory: ./build - run: | - file --mime-encoding tests/toml/tests/example.toml - file --mime-encoding tests/toml/tests/fruit.toml - file --mime-encoding tests/toml/tests/hard_example.toml - file --mime-encoding tests/toml/tests/hard_example_unicode.toml - ctest --build-config "${{ matrix.config }}" --output-on-failure diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 3871566..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -version: "{build}" -os: Visual Studio 2015 - -environment: - matrix: - - generator: Visual Studio 14 2015 Win64 - - generator: Visual Studio 14 2015 - -configuration: - - Release - - Debug - -clone_depth: 10 -clone_folder: c:\toml11 - -build_script: - - cd C:\toml11 - - mkdir build - - cd build - - cmake -G"%generator%" -DCMAKE_CXX_STANDARD=11 -DBOOST_ROOT=C:/Libraries/boost_1_69_0 -Dtoml11_BUILD_TEST=ON .. - - cmake --build . --config "%configuration%" - - file --mime-encoding tests/toml/tests/hard_example_unicode.toml - -test_script: - - ctest --build-config "%configuration%" --timeout 300 --output-on-failure