| 
9 | 9 |   MYCI_NEXUS_PASSWORD: ${{ secrets.MYCI_NEXUS_PASSWORD }}  | 
10 | 10 |   MYCI_GIT_USERNAME: igagis  | 
11 | 11 |   MYCI_GIT_PASSWORD: ${{ secrets.MYCI_GIT_ACCESS_TOKEN }}  | 
 | 12 | +  MYCI_CONAN_REMOTE: https://gagis.hopto.org/conan  | 
 | 13 | +  MYCI_CONAN_USER: cppfw  | 
 | 14 | +  MYCI_CONAN_PASSWORD: ${{ secrets.MYCI_CONAN_PASSWORD }}  | 
12 | 15 | jobs:  | 
13 | 16 | ##### deb linux #####  | 
14 | 17 |   deb:  | 
@@ -199,3 +202,159 @@ jobs:  | 
199 | 202 |         filename: '.\nuget\*.nupkg'  | 
200 | 203 |         api-key: ${{ secrets.NUGET_DOT_ORG_API_KEY }}  | 
201 | 204 |       if: startsWith(github.ref, 'refs/tags/')  | 
 | 205 | + | 
 | 206 | +##### conan - linux #####  | 
 | 207 | +  conan-linux:  | 
 | 208 | +    strategy:  | 
 | 209 | +      fail-fast: false  | 
 | 210 | +      matrix:  | 
 | 211 | +        include:  | 
 | 212 | +          - {os: debian, codename: bookworm, image_owner: }  | 
 | 213 | +          # - {os: debian, codename: bookworm, image_owner: i386/, labels: [i386,docker]}  | 
 | 214 | +          - {os: debian, codename: bookworm, image_owner: , labels: [arm32,docker]}  | 
 | 215 | +          - {os: debian, codename: bookworm, image_owner: , labels: [arm64,docker]}  | 
 | 216 | +    runs-on: ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}  | 
 | 217 | +    container: ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}  | 
 | 218 | +    name: conan - linux | ${{ matrix.labels[0] }}  | 
 | 219 | +    steps:  | 
 | 220 | +      - name: add llvm repo (for clang-format)  | 
 | 221 | +        uses: myci-actions/add-deb-repo@main  | 
 | 222 | +        with:  | 
 | 223 | +          repo: deb http://apt.llvm.org/${{ matrix.codename }} llvm-toolchain-${{ matrix.codename }} main  | 
 | 224 | +          repo-name: llvm  | 
 | 225 | +          keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key  | 
 | 226 | +          install: clang-format clang-tidy  | 
 | 227 | +      - name: add cppfw deb repo  | 
 | 228 | +        uses: myci-actions/add-deb-repo@main  | 
 | 229 | +        with:  | 
 | 230 | +          repo: deb https://gagis.hopto.org/repo/cppfw/${{ matrix.os }} ${{ matrix.codename }} main  | 
 | 231 | +          repo-name: cppfw  | 
 | 232 | +          keys-asc: https://gagis.hopto.org/repo/cppfw/pubkey.gpg  | 
 | 233 | +          install: devscripts equivs myci pipx cmake git  | 
 | 234 | +      - name: add ~/.local/bin to PATH  | 
 | 235 | +        uses: myci-actions/export-env-var@main  | 
 | 236 | +        with: {name: PATH, value: "$PATH:$HOME/.local/bin"}  | 
 | 237 | +      - name: install conan  | 
 | 238 | +        run: pipx install conan  | 
 | 239 | +      - name: create default conan profile  | 
 | 240 | +        run: |  | 
 | 241 | +          conan profile detect --name default  | 
 | 242 | +          sed -i -E "s/compiler.cppstd=.*$/compiler.cppstd=17/g" ~/.conan2/profiles/default  | 
 | 243 | +      - name: git clone  | 
 | 244 | +        uses: myci-actions/checkout@main  | 
 | 245 | +      - name: set PACKAGE_VERSION  | 
 | 246 | +        uses: myci-actions/export-env-var@main  | 
 | 247 | +        with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}  | 
 | 248 | +        if: startsWith(github.ref, 'refs/tags/')  | 
 | 249 | +      - name: build  | 
 | 250 | +        run: |  | 
 | 251 | +          conan remote add cppfw $MYCI_CONAN_REMOTE  | 
 | 252 | +          conan create conan --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION  | 
 | 253 | +      - name: deploy conan package  | 
 | 254 | +        run: |  | 
 | 255 | +          conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER  | 
 | 256 | +          conan upload --check --remote cppfw $PACKAGE_NAME/$PACKAGE_VERSION@$MYCI_CONAN_USER/main  | 
 | 257 | +        if: startsWith(github.ref, 'refs/tags/')  | 
 | 258 | +##### conan - macosx #####  | 
 | 259 | +  conan-macosx:  | 
 | 260 | +    strategy:  | 
 | 261 | +      fail-fast: false  | 
 | 262 | +      matrix:  | 
 | 263 | +        os:  | 
 | 264 | +          # - macos-10.15  | 
 | 265 | +          # - macos-11  | 
 | 266 | +          # - macos-12  | 
 | 267 | +          - macos-latest  | 
 | 268 | +    name: conan - ${{ matrix.os }}  | 
 | 269 | +    runs-on: ${{ matrix.os }}  | 
 | 270 | +    steps:  | 
 | 271 | +      - name: workaround python2 and python3 issue when upgrading python  | 
 | 272 | +        run : |  | 
 | 273 | +          rm -rf /usr/local/bin/2to3*  | 
 | 274 | +          rm -rf /usr/local/bin/idle3*  | 
 | 275 | +          rm -rf /usr/local/bin/pydoc3*  | 
 | 276 | +          rm -rf /usr/local/bin/python3  | 
 | 277 | +          rm -rf /usr/local/bin/python3-config  | 
 | 278 | +          rm -rf /usr/local/bin/python3*  | 
 | 279 | +          rm -rf /usr/local/bin/python3*-config  | 
 | 280 | +      - name: install clang-tidy and clang-format  | 
 | 281 | +        run: |  | 
 | 282 | +          brew install llvm  | 
 | 283 | +          ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"  | 
 | 284 | +          ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"  | 
 | 285 | +          ln -s "$(brew --prefix llvm)/bin/clang-apply-replacements" "/usr/local/bin/clang-apply-replacements"  | 
 | 286 | +      - name: git clone  | 
 | 287 | +        uses: myci-actions/checkout@main  | 
 | 288 | +      - name: add cppfw tap  | 
 | 289 | +        run: |  | 
 | 290 | +          brew tap cppfw/tap  | 
 | 291 | +          brew update  | 
 | 292 | +      - name: install ci tools  | 
 | 293 | +        run: brew install myci conan  | 
 | 294 | +      - name: create default conan profile  | 
 | 295 | +        run: |  | 
 | 296 | +          conan profile detect --name default  | 
 | 297 | +          sed -i -E "s/compiler.cppstd=.*$/compiler.cppstd=17/g" ~/.conan2/profiles/default  | 
 | 298 | +      - name: set PACKAGE_VERSION  | 
 | 299 | +        uses: myci-actions/export-env-var@main  | 
 | 300 | +        with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}  | 
 | 301 | +        if: startsWith(github.ref, 'refs/tags/')  | 
 | 302 | +      - name: build  | 
 | 303 | +        run: |  | 
 | 304 | +          conan remote add cppfw $MYCI_CONAN_REMOTE  | 
 | 305 | +          conan create conan --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION  | 
 | 306 | +      - name: deploy conan package  | 
 | 307 | +        run: |  | 
 | 308 | +          conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER  | 
 | 309 | +          conan upload --check --remote cppfw $PACKAGE_NAME/$PACKAGE_VERSION@$MYCI_CONAN_USER/main  | 
 | 310 | +        if: startsWith(github.ref, 'refs/tags/')  | 
 | 311 | + | 
 | 312 | +##### conan - emscripten #####  | 
 | 313 | +  conan-emscripten:  | 
 | 314 | +    strategy:  | 
 | 315 | +      fail-fast: false  | 
 | 316 | +      matrix:  | 
 | 317 | +        include:  | 
 | 318 | +          # - {os: ubuntu, codename: noble, image_owner: }  | 
 | 319 | +          - {os: debian, codename: bookworm, image_owner: }  | 
 | 320 | +          # - {os: debian, codename: bookworm, image_owner: i386/, labels: [i386,docker]}  | 
 | 321 | +          # - {os: debian, codename: bookworm, image_owner: , labels: [arm32,docker]}  | 
 | 322 | +          # - {os: debian, codename: bookworm, image_owner: , labels: [arm64,docker]}  | 
 | 323 | +    runs-on: ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}  | 
 | 324 | +    container: ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}  | 
 | 325 | +    name: conan - emscripten | ${{ matrix.labels[0] }}  | 
 | 326 | +    steps:  | 
 | 327 | +      - name: add cppfw deb repo  | 
 | 328 | +        uses: myci-actions/add-deb-repo@main  | 
 | 329 | +        with:  | 
 | 330 | +          repo: deb https://gagis.hopto.org/repo/cppfw/${{ matrix.os }} ${{ matrix.codename }} main  | 
 | 331 | +          repo-name: cppfw  | 
 | 332 | +          keys-asc: https://gagis.hopto.org/repo/cppfw/pubkey.gpg  | 
 | 333 | +          install: devscripts equivs myci pipx cmake git nodejs  | 
 | 334 | +      - name: add ~/.local/bin to PATH  | 
 | 335 | +        uses: myci-actions/export-env-var@main  | 
 | 336 | +        with: {name: PATH, value: "$PATH:$HOME/.local/bin"}  | 
 | 337 | +      - name: install conan  | 
 | 338 | +        run: pipx install conan  | 
 | 339 | +      - name: create default conan profile  | 
 | 340 | +        run: |  | 
 | 341 | +          conan profile detect --name default  | 
 | 342 | +          sed -i -E "s/compiler.cppstd=.*$/compiler.cppstd=17/g" ~/.conan2/profiles/default  | 
 | 343 | +      - name: git clone  | 
 | 344 | +        uses: myci-actions/checkout@main  | 
 | 345 | +        with:  | 
 | 346 | +          submodules: false  | 
 | 347 | +      - name: set PACKAGE_VERSION  | 
 | 348 | +        uses: myci-actions/export-env-var@main  | 
 | 349 | +        with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}  | 
 | 350 | +        if: startsWith(github.ref, 'refs/tags/')  | 
 | 351 | +      - name: build  | 
 | 352 | +        run: |  | 
 | 353 | +          conan remote add cppfw $MYCI_CONAN_REMOTE  | 
 | 354 | +          # NOTE: specifying empty test folder to skip the test stage  | 
 | 355 | +          conan create conan --profile:build default --profile:host emscripten/conan.profile --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION --test-folder ""  | 
 | 356 | +      - name: deploy conan package  | 
 | 357 | +        run: |  | 
 | 358 | +          conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER  | 
 | 359 | +          conan upload --check --remote cppfw $PACKAGE_NAME/$PACKAGE_VERSION@$MYCI_CONAN_USER/main  | 
 | 360 | +        if: startsWith(github.ref, 'refs/tags/')  | 
0 commit comments