diff --git a/.github/workflows/hosted-advanced-dump-logs.yml b/.github/workflows/hosted-advanced-dump-logs.yml new file mode 100644 index 0000000..5c449a2 --- /dev/null +++ b/.github/workflows/hosted-advanced-dump-logs.yml @@ -0,0 +1,101 @@ +# Copyright (c) 2019-2020-2021-2022 Luca Cappa +# Released under the term specified in file LICENSE.txt +# SPDX short identifier: MIT +name: hosted-advanced-dumplogs-autocache +on: [push] + +jobs: + + vcpkg-fails: + name: ${{ matrix.os }}-vcpkg-log-collection-validation + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + include: + - os: windows-latest + triplet: x64-windows + vcpkgCommitId: '5568f110b509a9fd90711978a7cb76bae75bb092' + vcpkgPackages: 'zlib bzip2 liblzma zstd' + - os: ubuntu-latest + triplet: x64-linux + vcpkgCommitId: '5568f110b509a9fd90711978a7cb76bae75bb092' + vcpkgPackages: 'zlib bzip2 liblzma zstd' + - os: macos-latest + triplet: x64-osx + vcpkgCommitId: '5568f110b509a9fd90711978a7cb76bae75bb092' + vcpkgPackages: 'zlib bzip2 liblzma zstd' + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + - name: dir + run: find $RUNNER_WORKSPACE + shell: bash + - name: Run vcpkg and dump its failure log + uses: lukka/run-vcpkg@v10.1 + with: + vcpkgArguments: '${{ matrix.vcpkgPackages }}' + vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' + vcpkgTriplet: '${{ matrix.triplet }}' + vcpkgGitCommitId: '${{ matrix.vcpkgCommitId }}' + continue-on-error: true + + cmake-fails: + name: ${{ matrix.os }}-cmake-log-collection-validation + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + include: + - os: windows-latest + triplet: x64-windows + vcpkgCommitId: '30124253eecff36bc90f73341edbfb4f845e2a1e' + vcpkgPackages: 'sqlite3' + configuration: 'x64.*' + - os: ubuntu-latest + triplet: x64-linux + vcpkgCommitId: '30124253eecff36bc90f73341edbfb4f845e2a1e' + vcpkgPackages: 'sqlite3' + configuration: '.*Linux.*' + - os: macos-latest + triplet: x64-osx + vcpkgCommitId: '30124253eecff36bc90f73341edbfb4f845e2a1e' + vcpkgPackages: 'sqlite3' + configuration: '.*Linux.*' + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - uses: lukka/get-cmake@latest + - name: dir + run: find $RUNNER_WORKSPACE + shell: bash + - name: Restore artifacts, or Run vcpkg, build and cache artifacts + uses: lukka/run-vcpkg@v10.1 + id: runvcpkg + with: + vcpkgArguments: '${{ matrix.vcpkgPackages }}' + vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' + vcpkgTriplet: '${{ matrix.triplet }}' + vcpkgGitCommitId: '${{ matrix.vcpkgCommitId }}' + - name: Prints output of run-vcpkg's task + run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }}' " + - name: Run CMake and dump its failure log + continue-on-error: true + uses: lukka/run-cmake@main + with: + cmakeListsOrSettingsJson: CMakeListsTxtAdvanced + cmakeListsTxtPath: '${{ github.workspace }}/cmakeliststxt/CMakeLists.txt' + buildDirectory: '${{ runner.workspace }}/b/dump_log' + cmakeAppendedArgs: '-DCMAKE_CXX_COMPILER=abc' + buildWithCMake: false + - name: dir + run: find $RUNNER_WORKSPACE + shell: bash + diff --git a/.github/workflows/hosted-contexts-dump.yml b/.github/workflows/hosted-contexts-dump.yml index e51853a..3a4743b 100644 --- a/.github/workflows/hosted-contexts-dump.yml +++ b/.github/workflows/hosted-contexts-dump.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT name: context-dumps @@ -56,7 +56,7 @@ jobs: if: contains( runner.os, 'windows') - uses: lukka/get-cmake@latest - name: Setup vcpkg or restore from cache the artifacts - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 id: runvcpkg with: vcpkgDirectory: ${{ github.workspace }}/../b/vcpkg diff --git a/.github/workflows/hosted-dump-logs.yml b/.github/workflows/hosted-dump-logs.yml index 21d0ca2..cf5812f 100644 --- a/.github/workflows/hosted-dump-logs.yml +++ b/.github/workflows/hosted-dump-logs.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT name: hosted-dumplogs-autocache @@ -29,7 +29,7 @@ jobs: run: find $RUNNER_WORKSPACE shell: bash - name: Run vcpkg and dump its failure log - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 with: vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' vcpkgGitCommitId: '${{ matrix.vcpkgCommitId }}' @@ -63,7 +63,7 @@ jobs: run: find $RUNNER_WORKSPACE shell: bash - name: Restore artifacts for vcpkg (or setup vcpkg if cache miss). - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 id: runvcpkg with: vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' diff --git a/.github/workflows/hosted-matchers.yml b/.github/workflows/hosted-matchers.yml index ac4dfda..c256aba 100644 --- a/.github/workflows/hosted-matchers.yml +++ b/.github/workflows/hosted-matchers.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2020-2021 Luca Cappa +# Copyright (c) 2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT name: hosted-matchers diff --git a/.github/workflows/hosted-msbuild-vcpkg_submod.yml b/.github/workflows/hosted-msbuild-vcpkg_submod.yml index 69759b3..9b9e166 100644 --- a/.github/workflows/hosted-msbuild-vcpkg_submod.yml +++ b/.github/workflows/hosted-msbuild-vcpkg_submod.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT # @@ -26,7 +26,7 @@ jobs: run: find $RUNNER_WORKSPACE shell: bash - name: Restore artifacts, or run vcpkg, build and cache artifacts - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 id: runvcpkg with: vcpkgJsonGlob: '**/cmakepresets/vcpkg.json' diff --git a/.github/workflows/hosted-ninja-toolchain-vcpkg_submod.yml b/.github/workflows/hosted-ninja-toolchain-vcpkg_submod.yml index 3cea5cc..86c6411 100644 --- a/.github/workflows/hosted-ninja-toolchain-vcpkg_submod.yml +++ b/.github/workflows/hosted-ninja-toolchain-vcpkg_submod.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT # @@ -27,7 +27,7 @@ jobs: run: find $RUNNER_WORKSPACE shell: bash - name: Restore artifacts, or run vcpkg, build and cache artifacts - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 id: runvcpkg with: vcpkgJsonGlob: '**/cmakepresets/vcpkg.json' diff --git a/.github/workflows/hosted-ninja-vcpkg-install.yml b/.github/workflows/hosted-ninja-vcpkg-install.yml index d4ea5c3..97b18e1 100644 --- a/.github/workflows/hosted-ninja-vcpkg-install.yml +++ b/.github/workflows/hosted-ninja-vcpkg-install.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT # @@ -47,7 +47,7 @@ jobs: shell: bash - name: Restore artifacts, or run vcpkg, build (and cache artifacts as post step) - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 id: runvcpkg with: vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' diff --git a/.github/workflows/hosted-ninja-vcpkg.yml b/.github/workflows/hosted-ninja-vcpkg.yml index fd39fb0..f094c1e 100644 --- a/.github/workflows/hosted-ninja-vcpkg.yml +++ b/.github/workflows/hosted-ninja-vcpkg.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2020-2021 Luca Cappa +# Copyright (c) 2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT # @@ -42,7 +42,7 @@ jobs: shell: bash - name: Restore artifacts, or setup vcpkg (do not install any package) - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 id: runvcpkg with: # This specifies the location of vcpkg, where it is going to be restored from cache, or create from scratch. diff --git a/.github/workflows/hosted-ninja-vcpkg_submod-triplet.yml b/.github/workflows/hosted-ninja-vcpkg_submod-triplet.yml index 72fce64..c4991e7 100644 --- a/.github/workflows/hosted-ninja-vcpkg_submod-triplet.yml +++ b/.github/workflows/hosted-ninja-vcpkg_submod-triplet.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT # @@ -42,7 +42,7 @@ jobs: shell: bash - name: Restore artifacts, or setup vcpkg for building artifacts - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 id: runvcpkg with: # This one is not needed, as it is the default value anyway. diff --git a/.github/workflows/hosted-ninja-vcpkg_submod.yml b/.github/workflows/hosted-ninja-vcpkg_submod.yml index a85f8cc..573dcd0 100644 --- a/.github/workflows/hosted-ninja-vcpkg_submod.yml +++ b/.github/workflows/hosted-ninja-vcpkg_submod.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT # @@ -32,7 +32,7 @@ jobs: shell: bash - name: Restore artifacts, or setup vcpkg for building artifacts - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@v10.1 id: runvcpkg with: # This one is not needed, as it is the default value anyway. diff --git a/.github/workflows/hosted-pure-workflow.yml b/.github/workflows/hosted-pure-workflow.yml index 28bb66e..2f4f11c 100644 --- a/.github/workflows/hosted-pure-workflow.yml +++ b/.github/workflows/hosted-pure-workflow.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Luca Cappa +# Copyright (c) 2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/README.md b/README.md index c85f50b..fc94c81 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ Essentially the yaml definitions exercise the actions and the tasks to verify th # License All the content in this repository is licensed under the [MIT License](LICENSE.txt). -Copyright (c) 2019-2020-2021 Luca Cappa +Copyright (c) 2019-2020-2021-2022 Luca Cappa diff --git a/cmakesettingsjson/macos-hosted-advanced-cache-submod_vcpkg.yml b/cmakesettingsjson/macos-hosted-advanced-cache-submod_vcpkg.yml index 3c61702..2a5af26 100644 --- a/cmakesettingsjson/macos-hosted-advanced-cache-submod_vcpkg.yml +++ b/cmakesettingsjson/macos-hosted-advanced-cache-submod_vcpkg.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/macos-hosted-advanced.yml b/cmakesettingsjson/macos-hosted-advanced.yml index 6b652a5..65ba2dc 100644 --- a/cmakesettingsjson/macos-hosted-advanced.yml +++ b/cmakesettingsjson/macos-hosted-advanced.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/test.cpp b/cmakesettingsjson/test.cpp index 47a65b4..3087257 100644 --- a/cmakesettingsjson/test.cpp +++ b/cmakesettingsjson/test.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2019-2020-2021 Luca Cappa +// Copyright (c) 2019-2020-2021-2022 Luca Cappa // Released under the term specified in file LICENSE.txt // SPDX short identifier: MIT diff --git a/cmakesettingsjson/ubuntu-hosted-advanced-cache-submod_vcpkg.yml b/cmakesettingsjson/ubuntu-hosted-advanced-cache-submod_vcpkg.yml index 541024c..f7192e7 100644 --- a/cmakesettingsjson/ubuntu-hosted-advanced-cache-submod_vcpkg.yml +++ b/cmakesettingsjson/ubuntu-hosted-advanced-cache-submod_vcpkg.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/ubuntu-hosted-advanced-cache.yml b/cmakesettingsjson/ubuntu-hosted-advanced-cache.yml index e64cc2d..2400ec6 100644 --- a/cmakesettingsjson/ubuntu-hosted-advanced-cache.yml +++ b/cmakesettingsjson/ubuntu-hosted-advanced-cache.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/ubuntu-hosted-advanced.yml b/cmakesettingsjson/ubuntu-hosted-advanced.yml index 8850835..79d4034 100644 --- a/cmakesettingsjson/ubuntu-hosted-advanced.yml +++ b/cmakesettingsjson/ubuntu-hosted-advanced.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/vs2017-hosted-advanced-cache.yml b/cmakesettingsjson/vs2017-hosted-advanced-cache.yml index 264322b..afdc2f7 100644 --- a/cmakesettingsjson/vs2017-hosted-advanced-cache.yml +++ b/cmakesettingsjson/vs2017-hosted-advanced-cache.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/vs2017-hosted-advanced.yml b/cmakesettingsjson/vs2017-hosted-advanced.yml index c2002be..e12fdc6 100644 --- a/cmakesettingsjson/vs2017-hosted-advanced.yml +++ b/cmakesettingsjson/vs2017-hosted-advanced.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/vs2019-hosted-advanced-cache-vcpkg_submod.yml b/cmakesettingsjson/vs2019-hosted-advanced-cache-vcpkg_submod.yml index b4fb52d..3d13318 100644 --- a/cmakesettingsjson/vs2019-hosted-advanced-cache-vcpkg_submod.yml +++ b/cmakesettingsjson/vs2019-hosted-advanced-cache-vcpkg_submod.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/vs2019-hosted-advanced-cache.yml b/cmakesettingsjson/vs2019-hosted-advanced-cache.yml index 1b82573..73ffedf 100644 --- a/cmakesettingsjson/vs2019-hosted-advanced-cache.yml +++ b/cmakesettingsjson/vs2019-hosted-advanced-cache.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/cmakesettingsjson/vs2019-hosted-advanced.yml b/cmakesettingsjson/vs2019-hosted-advanced.yml index b8408ef..cd03b02 100644 --- a/cmakesettingsjson/vs2019-hosted-advanced.yml +++ b/cmakesettingsjson/vs2019-hosted-advanced.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT diff --git a/templates/install-gcc-macos.yml b/templates/install-gcc-macos.yml index 3fd41de..a83d694 100644 --- a/templates/install-gcc-macos.yml +++ b/templates/install-gcc-macos.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2020-2021 Luca Cappa +# Copyright (c) 2019-2020-2021-2022 Luca Cappa # Released under the term specified in file LICENSE.txt # SPDX short identifier: MIT