6262 cmake --version
6363 env | sort
6464 - name : configure Conan
65- env :
66- CONAN_URL : http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
6765 run : |
6866 conan profile new default --detect
6967 conan profile update settings.compiler.cppstd=20 default
@@ -73,33 +71,17 @@ jobs:
7371 conan profile update env.CC=${{ matrix.profile.cc }} default
7472 conan profile update env.CXX=${{ matrix.profile.cxx }} default
7573 conan profile update conf.tools.build:compiler_executables='{"c": "${{ matrix.profile.cc }}", "cpp": "${{ matrix.profile.cxx }}"}' default
76- # Do not quote the URL. An empty string will be accepted (with
77- # a non-fatal warning), but a missing argument will not.
78- conan remote add ripple ${{ env.CONAN_URL }} --insert 0
79- - name : try to authenticate to ripple Conan remote
80- id : remote
81- run : |
82- echo outcome=$(conan user --remote ripple ${{ secrets.CONAN_USERNAME }} --password ${{ secrets.CONAN_TOKEN }} >&2 && echo success || echo failure) | tee ${GITHUB_OUTPUT}
8374 - name : archive profile
8475 # Create this archive before dependencies are added to the local cache.
8576 run : tar -czf conan.tar -C ~/.conan .
86- - name : list missing binaries
87- id : binaries
88- # Print the list of dependencies that would need to be built locally.
89- # A non-empty list means we have "failed" to cache binaries remotely.
90- run : |
91- echo missing=$(conan info . --build missing --settings build_type=${{ matrix.configuration }} --json 2>/dev/null | grep '^\[') | tee ${GITHUB_OUTPUT}
9277 - name : build dependencies
93- if : (steps.binaries.outputs.missing != '[]')
9478 uses : ./.github/actions/dependencies
79+ env :
80+ CONAN_URL : http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
81+ CONAN_USERNAME : ${{ secrets.CONAN_USERNAME }}
82+ CONAN_TOKEN : ${{ secrets.CONAN_TOKEN }}
9583 with :
9684 configuration : ${{ matrix.configuration }}
97- - name : upload dependencies to remote
98- if : (steps.binaries.outputs.missing != '[]') && (steps.remote.outputs.outcome == 'success')
99- run : conan upload --remote ripple '*' --all --parallel --confirm
100- - name : recreate archive with dependencies
101- if : (steps.binaries.outputs.missing != '[]') && (steps.remote.outputs.outcome == 'failure')
102- run : tar -czf conan.tar -C ~/.conan .
10385 - name : upload archive
10486 uses : actions/upload-artifact@v3
10587 with :
@@ -148,6 +130,8 @@ jobs:
148130 uses : actions/checkout@v3
149131 - name : dependencies
150132 uses : ./.github/actions/dependencies
133+ env :
134+ CONAN_URL : http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
151135 with :
152136 configuration : ${{ matrix.configuration }}
153137 - name : build
@@ -197,6 +181,8 @@ jobs:
197181 uses : actions/checkout@v3
198182 - name : dependencies
199183 uses : ./.github/actions/dependencies
184+ env :
185+ CONAN_URL : http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
200186 with :
201187 configuration : ${{ matrix.configuration }}
202188 - name : build
0 commit comments