diff --git a/.github/workflows/fix-trailing-whitespace.yml b/.github/workflows/fix-trailing-whitespace.yml index a68409813..049a8138b 100644 --- a/.github/workflows/fix-trailing-whitespace.yml +++ b/.github/workflows/fix-trailing-whitespace.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: whitespace: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Remove whitespace and check the diff diff --git a/.github/workflows/ubuntu20-gcc8.yml b/.github/workflows/ubuntu20-gcc8.yml deleted file mode 100644 index 64b0a3834..000000000 --- a/.github/workflows/ubuntu20-gcc8.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Ubuntu 20.04 CI (GCC 8) - -on: [push, pull_request] - -jobs: - ubuntu-build: - if: >- - ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && - ! contains(toJSON(github.event.commits.*.message), '[skip github]') - runs-on: ubuntu-20.04 - env: - CXX: g++-8 - CC: gcc-8 - steps: - - uses: actions/checkout@v4 - - uses: actions/cache@v4 - with: - path: dependencies/.cache - key: ${{ hashFiles('dependencies/CMakeLists.txt') }} - - name: Install GCC 8 - run: sudo apt-get install -y g++-8 - - name: Use cmake - run: | - mkdir builddebug && - cd builddebug && - cmake -DCMAKE_BUILD_TYPE=Debug -DSIMDJSON_GOOGLE_BENCHMARKS=OFF -DSIMDJSON_DEVELOPER_MODE=ON -DBUILD_SHARED_LIBS=OFF .. && - cmake --build . && - ctest --output-on-failure -LE explicitonly -j && - cd .. && - mkdir build && - cd build && - cmake -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_DEVELOPER_MODE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX:PATH=destination .. && - cmake --build . && - ctest --output-on-failure -LE explicitonly -j && - cmake --install . && - echo -e '#include \nint main(int argc,char**argv) {simdjson::dom::parser parser;simdjson::dom::element tweets = parser.load(argv[1]); }' > tmp.cpp && c++ -Idestination/include -Ldestination/lib -std=c++17 -Wl,-rpath,destination/lib -o linkandrun tmp.cpp -lsimdjson && ./linkandrun jsonexamples/twitter.json && - cd ../tests/installation_tests/find && - mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build . diff --git a/.github/workflows/ubuntu20.yml b/.github/workflows/ubuntu20.yml deleted file mode 100644 index bae1788fd..000000000 --- a/.github/workflows/ubuntu20.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Ubuntu 20.04 CI (GCC 9) - -on: [push, pull_request] - -jobs: - ubuntu-build: - if: >- - ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && - ! contains(toJSON(github.event.commits.*.message), '[skip github]') - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/cache@v4 - with: - path: dependencies/.cache - key: ${{ hashFiles('dependencies/CMakeLists.txt') }} - - name: Use cmake to build just the library - run: | - mkdir buildjustlib && - cd buildjustlib && - cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DSIMDJSON_DEVELOPER_MODE=OFF -DCMAKE_INSTALL_PREFIX:PATH=destination .. && - cmake --build . && - cmake --install . && - echo -e '#include \nint main(int argc,char**argv) {simdjson::dom::parser parser;simdjson::dom::element tweets = parser.load(argv[1]); }' > tmp.cpp && - c++ -Idestination/include -Ldestination/lib -std=c++17 -Wl,-rpath,destination/lib -o linkandrun tmp.cpp -lsimdjson && - cd ../tests/installation_tests/find && - mkdir buildjustlib && - cd buildjustlib && - cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../buildjustlib/destination .. && - cmake --build . - - name: Use cmake - run: | - mkdir builddebug && - cd builddebug && - cmake -DCMAKE_BUILD_TYPE=Debug -DSIMDJSON_GOOGLE_BENCHMARKS=OFF -DSIMDJSON_DEVELOPER_MODE=ON -DBUILD_SHARED_LIBS=OFF .. && - cmake --build . && - ctest --output-on-failure -LE explicitonly -j && - cd .. && - mkdir build && - cd build && - cmake -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_DEVELOPER_MODE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX:PATH=destination .. && - cmake --build . && - ctest --output-on-failure -LE explicitonly -j && - cmake --install . && - echo -e '#include \nint main(int argc,char**argv) {simdjson::dom::parser parser;simdjson::dom::element tweets = parser.load(argv[1]); }' > tmp.cpp && c++ -Idestination/include -Ldestination/lib -std=c++17 -Wl,-rpath,destination/lib -o linkandrun tmp.cpp -lsimdjson && ./linkandrun jsonexamples/twitter.json && - cd ../tests/installation_tests/find && - mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build . diff --git a/.github/workflows/ubuntu20-checkperf.yml b/.github/workflows/ubuntu24-checkperf.yml similarity index 97% rename from .github/workflows/ubuntu20-checkperf.yml rename to .github/workflows/ubuntu24-checkperf.yml index 742600575..d9e37b83e 100644 --- a/.github/workflows/ubuntu20-checkperf.yml +++ b/.github/workflows/ubuntu24-checkperf.yml @@ -13,7 +13,7 @@ jobs: if: >- ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip github]') - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 diff --git a/.github/workflows/ubuntu20-noexcept.yml b/.github/workflows/ubuntu24-noexcept.yml similarity index 98% rename from .github/workflows/ubuntu20-noexcept.yml rename to .github/workflows/ubuntu24-noexcept.yml index 4efc50c74..cd126e916 100644 --- a/.github/workflows/ubuntu20-noexcept.yml +++ b/.github/workflows/ubuntu24-noexcept.yml @@ -7,7 +7,7 @@ jobs: if: >- ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip github]') - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 diff --git a/.github/workflows/ubuntu20-nothread.yml b/.github/workflows/ubuntu24-nothread.yml similarity index 98% rename from .github/workflows/ubuntu20-nothread.yml rename to .github/workflows/ubuntu24-nothread.yml index fe3ea9444..5c063e8eb 100644 --- a/.github/workflows/ubuntu20-nothread.yml +++ b/.github/workflows/ubuntu24-nothread.yml @@ -7,7 +7,7 @@ jobs: if: >- ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip github]') - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 diff --git a/.github/workflows/ubuntu20-sani.yml b/.github/workflows/ubuntu24-sani.yml similarity index 96% rename from .github/workflows/ubuntu20-sani.yml rename to .github/workflows/ubuntu24-sani.yml index 2eec17dba..e658a8bbb 100644 --- a/.github/workflows/ubuntu20-sani.yml +++ b/.github/workflows/ubuntu24-sani.yml @@ -7,7 +7,7 @@ jobs: if: >- ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip github]') - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 @@ -25,7 +25,7 @@ jobs: if: >- ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip github]') - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4