diff --git a/.github/workflows/doxygen.disabled.yml b/.github/workflows/doxygen.disabled.yml deleted file mode 100644 index 45d079d33..000000000 --- a/.github/workflows/doxygen.disabled.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Build and publish Doxygen documentation -on: - push: - branches: - - dev - -jobs: - job: - runs-on: ubuntu-latest - container: - image: docker://rippleci/rippled-ci-builder:2944b78d22db - steps: - - name: checkout - uses: actions/checkout@v2 - - name: build - run: | - mkdir build - cd build - cmake -DBoost_NO_BOOST_CMAKE=ON .. - cmake --build . --target docs --parallel $(nproc) - - name: publish - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: build/docs/html diff --git a/.github/workflows/macos.disabled.yml b/.github/workflows/macos.disabled.yml deleted file mode 100644 index 497fa2465..000000000 --- a/.github/workflows/macos.disabled.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: macos -on: [push, pull_request] - -jobs: - - test: - strategy: - matrix: - platform: - - macos - generator: - - Ninja - configuration: - - Release - runs-on: [self-hosted, macOS, ARM64] - env: - # The `build` action requires these variables. - build_dir: .build - NUM_PROCESSORS: 12 - steps: - - name: checkout - uses: actions/checkout@v4 - - name: install Conan - run: | - brew install conan@1 - echo '/opt/homebrew/opt/conan@1/bin' >> $GITHUB_PATH - - name: install Ninja - if: matrix.generator == 'Ninja' - run: brew install ninja - - name: install python - run: | - if which python > /dev/null 2>&1; then - echo "Python executable exists" - else - brew install python@3.13 - ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python - fi - - name: install cmake - run: | - if which cmake > /dev/null 2>&1; then - echo "cmake executable exists" - else - brew install cmake - fi - - name: check environment - run: | - echo ${PATH} | tr ':' '\n' - python --version - conan --version - cmake --version - env - - name: configure Conan - run : | - conan profile new default --detect || true - conan profile update settings.compiler.cppstd=20 default - conan profile update 'conf.tools.build:cxxflags=[]' default - - name: build - uses: ./.github/actions/build - with: - generator: ${{ matrix.generator }} - configuration: ${{ matrix.configuration }} - - name: test - run: | - ${build_dir}/rippled --unittest diff --git a/.github/workflows/nix.disabled.yml b/.github/workflows/nix.disabled.yml deleted file mode 100644 index d27dca0ec..000000000 --- a/.github/workflows/nix.disabled.yml +++ /dev/null @@ -1,116 +0,0 @@ -name: nix -on: [push, pull_request] - -jobs: - - dependencies: - strategy: - matrix: - platform: - - linux - compiler: - - gcc - - clang - configuration: - - Debug - - Release - include: - - compiler: gcc - profile: - version: 11 - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - - compiler: clang - profile: - version: 14 - cc: /usr/bin/clang-14 - cxx: /usr/bin/clang++-14 - runs-on: [self-hosted, vanity] - container: rippleci/rippled-build-ubuntu:aaf5e3e - env: - build_dir: .build - steps: - - name: upgrade conan - run: | - pip install --upgrade "conan<2" - - name: check environment - run: | - echo ${PATH} | tr ':' '\n' - conan --version - cmake --version - env - - name: configure Conan - run: | - conan profile new default --detect - conan profile update settings.compiler.cppstd=20 default - conan profile update settings.compiler=${{ matrix.compiler }} default - conan profile update settings.compiler.version=${{ matrix.profile.version }} default - conan profile update settings.compiler.libcxx=libstdc++11 default - conan profile update env.CC=${{ matrix.profile.cc }} default - conan profile update env.CXX=${{ matrix.profile.cxx }} default - conan profile update conf.tools.build:compiler_executables='{"c": "${{ matrix.profile.cc }}", "cpp": "${{ matrix.profile.cxx }}"}' default - - name: checkout - uses: actions/checkout@v3 - - name: dependencies - uses: ./.github/actions/dependencies - with: - configuration: ${{ matrix.configuration }} - - name: archive cache - run: tar -czf conan.tar -C ~/.conan . - - name: upload cache - uses: actions/upload-artifact@v4 - with: - name: ${{ matrix.platform }}-${{ matrix.compiler }}-${{ matrix.configuration }} - path: conan.tar - - - test: - strategy: - fail-fast: false - matrix: - platform: - - linux - compiler: - - gcc - - clang - configuration: - - Debug - - Release - cmake-args: - - - - "-Dunity=ON" - needs: dependencies - runs-on: [self-hosted, vanity] - container: rippleci/rippled-build-ubuntu:aaf5e3e - env: - build_dir: .build - steps: - - name: upgrade conan - run: | - pip install --upgrade "conan<2" - - name: download cache - uses: actions/download-artifact@v4 - with: - name: ${{ matrix.platform }}-${{ matrix.compiler }}-${{ matrix.configuration }} - - name: extract cache - run: | - mkdir -p ~/.conan - tar -xzf conan.tar -C ~/.conan - - name: check environment - run: | - echo ${PATH} | tr ':' '\n' - conan --version - cmake --version - env - ls ~/.conan - - name: checkout - uses: actions/checkout@v3 - - name: build - uses: ./.github/actions/build - with: - generator: Ninja - configuration: ${{ matrix.configuration }} - cmake-args: ${{ matrix.cmake-args }} - - name: test - run: | - ${build_dir}/rippled --unittest --unittest-jobs $(nproc) diff --git a/.github/workflows/windows.disabled.yml b/.github/workflows/windows.disabled.yml deleted file mode 100644 index 3f7acb026..000000000 --- a/.github/workflows/windows.disabled.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: windows -# We have disabled this workflow because it fails in our CI Windows -# environment, but we cannot replicate the failure in our personal Windows -# test environments, nor have we gone through the trouble of setting up an -# interactive CI Windows environment. -# We welcome contributions to diagnose or debug the problems on Windows. Until -# then, we leave this tombstone as a reminder that we have tried (but failed) -# to write a reliable test for Windows. -# on: [push, pull_request] - -jobs: - - test: - strategy: - matrix: - generator: - - Visual Studio 16 2019 - configuration: - - Release - runs-on: windows-2019 - env: - build_dir: .build - steps: - - name: checkout - uses: actions/checkout@v3 - - name: choose Python - uses: actions/setup-python@v3 - with: - python-version: 3.9 - - name: learn Python cache directory - id: pip-cache - run: | - pip install --upgrade pip - echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT - - name: restore Python cache directory - uses: actions/cache@v2 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: ${{ runner.os }}-${{ hashFiles('.github/workflows/windows.yml') }} - - name: install Conan - run: pip install wheel 'conan<2' - - name: check environment - run: | - $env:PATH -split ';' - python --version - conan --version - cmake --version - dir env: - - name: configure Conan - run: | - conan profile new default --detect - conan profile update settings.compiler.cppstd=20 default - conan profile update settings.compiler.runtime=MT default - conan profile update settings.compiler.toolset=v141 default - - name: learn Conan cache directory - id: conan-cache - run: | - echo "dir=$(conan config get storage.path)" >> $GITHUB_OUTPUT - - name: restore Conan cache directory - uses: actions/cache@v2 - with: - path: ${{ steps.conan-cache.outputs.dir }} - key: ${{ hashFiles('~/.conan/profiles/default', 'conanfile.py', 'external/rocksdb/*', '.github/workflows/windows.yml') }} - - name: export custom recipes - run: | - conan export external/snappy snappy/1.1.9@ - conan export external/soci soci/4.0.3@ - - name: install dependencies - run: | - mkdir $env:build_dir - cd $env:build_dir - conan install .. --build missing --settings build_type=${{ matrix.configuration }} - - name: configure - run: | - $env:build_dir - cd $env:build_dir - pwd - ls - cmake ` - -G "${{ matrix.generator }}" ` - -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake ` - -Dassert=ON ` - -Dreporting=OFF ` - -Dunity=OFF ` - .. - - name: build - run: | - cmake --build $env:build_dir --target rippled --config ${{ matrix.configuration }} --parallel $env:NUMBER_OF_PROCESSORS - - name: test - run: | - & "$env:build_dir\${{ matrix.configuration }}\rippled.exe" --unittest