diff --git a/.github/workflows/brief.yml b/.github/workflows/brief.yml index 9a118a9b3a..0b1b0b1cb9 100644 --- a/.github/workflows/brief.yml +++ b/.github/workflows/brief.yml @@ -15,14 +15,14 @@ jobs: strategy: fail-fast: false matrix: - platform: [windows-latest, macos-latest, ubuntu-18.04] + platform: [windows-latest, macos-latest, ubuntu-latest] xml_parser_option: ["-DWITH_EXPAT"] with_namespace: ["True"] strict: ["True"] with_examples: ["True"] package_option: ["-DWITH_ALL_PACKAGES=ON"] language_bindings: - [ "-DWITH_JAVA=True -DWITH_CSHARP=True -DWITH_PYTHON=True"] + [ "-DWITH_JAVA=True -DWITH_CSHARP=True"] cpp_standard: [98, 20] runs-on: ${{ matrix.platform }} @@ -72,14 +72,17 @@ jobs: shell: bash run: | echo RUNTIME_LINKING_OPTION="-DWITH_STATIC_RUNTIME=ON" >> "${GITHUB_ENV}" + echo PYTHON_LINKING_OPTION="-DWITH_PYTHON=ON" >> "${GITHUB_ENV}" + - name: Install Ubuntu dependencies # ubuntu already has SWIG and libxml2 by default - if: matrix.platform == 'ubuntu-18.04' + if: matrix.platform == 'ubuntu-latest' shell: bash run: | + sudo apt-get update sudo apt-get install -y check ccache - echo PYTHON_LINKING_OPTION="-DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}" + echo PYTHON_LINKING_OPTION="-DWITH_PYTHON=ON -DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}" echo R_BINDINGS="-DWITH_R=True" >> "${GITHUB_ENV}" git clone https://github.com/libexpat/libexpat cmake -G Ninja -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DEXPAT_BUILD_TESTS=OFF -DEXPAT_BUILD_TOOLS=OFF -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./dependencies -B libexpat -S libexpat/expat diff --git a/.github/workflows/extensive.yml b/.github/workflows/extensive.yml index 8159d91fb5..abe490d111 100644 --- a/.github/workflows/extensive.yml +++ b/.github/workflows/extensive.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: xml_parser_option: ["-DWITH_LIBXML"] - platform: [windows-latest, macos-latest, ubuntu-18.04] + platform: [windows-latest, macos-latest, ubuntu-latest] with_namespace: ["True", "False"] strict: ["True"] with_examples: ["True"] @@ -64,14 +64,14 @@ jobs: language_bindings: "" # extra Ubuntu runs - xml_parser_option: "-DWITH_EXPAT" - platform: ubuntu-18.04 + platform: ubuntu-latest with_namespace: "True" strict: "True" with_examples: "True" package_option: "-DWITH_ALL_PACKAGES=ON" language_bindings: "" - xml_parser_option: "-DWITH_XERCES" - platform: ubuntu-18.04 + platform: ubuntu-latest with_namespace: "True" strict: "True" with_examples: "True" @@ -135,9 +135,10 @@ jobs: - name: Install Ubuntu dependencies # ubuntu already has SWIG and libxml2 by default - if: matrix.platform == 'ubuntu-18.04' + if: matrix.platform == 'ubuntu-latest' shell: bash run: | + sudo apt-get update sudo apt-get install -y check libxerces-c-dev expat ccache echo PYTHON_LINKING_OPTION="-DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}" git clone https://github.com/libexpat/libexpat diff --git a/.github/workflows/store-artefact.yml b/.github/workflows/store-artefact.yml index 63c993f133..528ca78385 100644 --- a/.github/workflows/store-artefact.yml +++ b/.github/workflows/store-artefact.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [windows-latest, macos-latest, ubuntu-18.04] + platform: [windows-latest, macos-latest, ubuntu-latest] xml_parser_option: ["-DWITH_EXPAT=ON"] with_namespace: ["True"] strict: ["True"] @@ -88,9 +88,10 @@ jobs: - name: Install Ubuntu dependencies # ubuntu already has SWIG but expat is too old - if: matrix.platform == 'ubuntu-18.04' + if: matrix.platform == 'ubuntu-latest' shell: bash run: | + sudo apt-get update sudo apt-get install -y check ccache echo PYTHON_LINKING_OPTION="-DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}" git clone https://github.com/libexpat/libexpat @@ -245,7 +246,7 @@ jobs: if-no-files-found: error - name: Upload Ubuntu binary archive - if: matrix.platform == 'ubuntu-18.04' + if: matrix.platform == 'ubuntu-latest' uses: actions/upload-artifact@v2 with: name: