Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update vcpkg to 2023.04.21 #668

Merged
merged 18 commits into from
Sep 15, 2023
9 changes: 7 additions & 2 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# The key includes: hash of the vcpkg.json file, the hash of the vcpkg Git commit id, and the used vcpkg's triplet. The vcpkg's commit id would suffice, but computing an hash out it does not harm.
# Note: given a key, the cache content is immutable. If a cache entry has been created improperly, in order the recreate the right content the key must be changed as well, and it must be brand new (i.e. not existing already).
key: |
${{ hashFiles( 'vcpkg_manifest/vcpkg.json' ) }}-${{ hashFiles( '.git/modules/vcpkg/HEAD' )}}-${{ matrix.triplet }}
${{ hashFiles( 'vcpkg.json' ) }}-${{ hashFiles( '.git/modules/vcpkg/HEAD' )}}-${{ matrix.triplet }}

- name: Install dependencies
run: |
Expand Down Expand Up @@ -103,12 +103,17 @@ jobs:
run: |
cd vcpkg
./bootstrap-vcpkg.sh
vcpkg install jsoncpp gtest boost-mpi boost-program-options tbb zlib --triplet ${{matrix.triplet}}
vcpkg install --triplet ${{matrix.triplet}}
rm -rf buildtrees
rm -rf packages
rm -rf downloads
shell: bash

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake'

- name: Download pre-compiled librairies
uses: ./.github/workflows/download-extract-precompiled-libraries-zip
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/centos7-system-deps-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ jobs:
prefix: "../rte-antares-deps-Release/"

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake3'

- name: Configure
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/compile-tbb/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "Download and compile tbb"
description: "tbb is required for execution policy (parallelization c++)."
inputs:
cmake:
description: 'cmake version'
required: true
runs:
using: "composite"
steps:
Expand All @@ -8,5 +12,5 @@ runs:
run: |
git clone https://github.com/wjakob/tbb.git
cd tbb/build
cmake3 ..
cmake3 --build . --target install -j8
${{ inputs.cmake }} ..
${{ inputs.cmake }} --build . --target install -j8
9 changes: 7 additions & 2 deletions .github/workflows/windows-vcpkg-deps-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
# The key includes: hash of the vcpkg.json file, the hash of the vcpkg Git commit id, and the used vcpkg's triplet. The vcpkg's commit id would suffice, but computing an hash out it does not harm.
# Note: given a key, the cache content is immutable. If a cache entry has been created improperly, in order the recreate the right content the key must be changed as well, and it must be brand new (i.e. not existing already).
key: |
${{ hashFiles( 'vcpkg_manifest/vcpkg.json' ) }}-${{ hashFiles( '.git/modules/vcpkg/HEAD' )}}-${{ matrix.triplet }}-invalidate
${{ hashFiles( 'vcpkg.json' ) }}-${{ hashFiles( '.git/modules/vcpkg/HEAD' )}}-${{ matrix.triplet }}-invalidate

- name: Install dependencies
run: |
Expand All @@ -76,12 +76,17 @@ jobs:
run: |
cd vcpkg
./bootstrap-vcpkg.sh
vcpkg install jsoncpp gtest boost-mpi boost-program-options tbb zlib --triplet ${{matrix.triplet}}
vcpkg install --triplet ${{matrix.triplet}}
rm -rf buildtrees
rm -rf packages
rm -rf downloads
shell: bash

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake'

- name: Configure
run: |
$pwd=Get-Location
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/windows-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
# The key includes: hash of the vcpkg.json file, the hash of the vcpkg Git commit id, and the used vcpkg's triplet. The vcpkg's commit id would suffice, but computing an hash out it does not harm.
# Note: given a key, the cache content is immutable. If a cache entry has been created improperly, in order the recreate the right content the key must be changed as well, and it must be brand new (i.e. not existing already).
key: |
${{ hashFiles( 'vcpkg_manifest/vcpkg.json' ) }}-${{ hashFiles( '.git/modules/vcpkg/HEAD' )}}-${{ matrix.triplet }}-invalidate
${{ hashFiles( 'vcpkg.json' ) }}-${{ hashFiles( '.git/modules/vcpkg/HEAD' )}}-${{ matrix.triplet }}-invalidate

- name: Install dependencies
run: |
Expand Down Expand Up @@ -143,12 +143,17 @@ jobs:
run: |
cd vcpkg
./bootstrap-vcpkg.sh
vcpkg install jsoncpp gtest boost-mpi boost-program-options tbb zlib --triplet ${{matrix.triplet}}
vcpkg install --triplet ${{matrix.triplet}}
rm -rf buildtrees
rm -rf packages
rm -rf downloads
shell: bash

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake'

- name: Download pre-compiled librairies
uses: ./.github/workflows/download-extract-precompiled-libraries-zip
with:
Expand Down
4 changes: 2 additions & 2 deletions docker/centos7-bare
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

# Install requirements : update repo
# Install requirements: update repo
RUN yum update -y

# Install requirements : install epel
Expand Down Expand Up @@ -30,4 +30,4 @@ RUN yum install -y python3-pip &&\

#create user
RUN useradd user
# USER user
# USER user
2 changes: 1 addition & 1 deletion vcpkg
Submodule vcpkg updated 7326 files
6 changes: 1 addition & 5 deletions vcpkg_manifest/vcpkg.json → vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
"gtest",
"boost-mpi",
"boost-program-options",
"tbb",
"zlib"
],
"overrides": [
{ "name": "tbb", "version": "2020_U3" }
]
}
}
Loading