@@ -519,58 +519,56 @@ jobs:
519
519
conan upload --check --remote cppfw $PACKAGE_NAME/$PACKAGE_VERSION@$MYCI_CONAN_USER/main
520
520
if : startsWith(github.ref, 'refs/tags/')
521
521
# #### conan - macosx #####
522
- # conan-macosx:
523
- # strategy:
524
- # fail-fast: false
525
- # matrix:
526
- # os:
527
- # # - macos-10.15
528
- # - macos-11
529
- # # - macos-12
530
- # name: conan - ${{ matrix.os }}
531
- # runs-on: ${{ matrix.os }}
532
- # steps:
533
- # - name: workaround python2 and python3 issue when upgrading python
534
- # run : |
535
- # rm -rf /usr/local/bin/2to3*
536
- # rm -rf /usr/local/bin/idle3*
537
- # rm -rf /usr/local/bin/pydoc3*
538
- # rm -rf /usr/local/bin/python3
539
- # rm -rf /usr/local/bin/python3-config
540
- # rm -rf /usr/local/bin/python3*
541
- # rm -rf /usr/local/bin/python3*-config
542
- # - name: install clang-tidy and clang-format
543
- # run: |
544
- # brew install llvm
545
- # ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
546
- # ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"
547
- # ln -s "$(brew --prefix llvm)/bin/clang-apply-replacements" "/usr/local/bin/clang-apply-replacements"
548
- # - name: git clone
549
- # uses: myci-actions/checkout@main
550
- # - name: add cppfw tap
551
- # run: |
552
- # brew tap cppfw/tap
553
- # brew update
554
- # - name: install ci tools
555
- # run: brew install myci prorab prorab-extra conan make
556
- # - name: create default conan profile
557
- # run: |
558
- # conan profile detect --name default
559
- # sed -i -E "s/compiler.cppstd=.*$/compiler.cppstd=17/g" ~/.conan2/profiles/default
560
- # - name: set PATH to use latest make
561
- # uses: myci-actions/export-env-var@main
562
- # with: {name: PATH, value: "/usr/local/opt/make/libexec/gnubin:$PATH"}
563
- # - name: set PACKAGE_VERSION
564
- # uses: myci-actions/export-env-var@main
565
- # with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}
566
- # if: startsWith(github.ref, 'refs/tags/')
567
- # - name: build
568
- # run: |
569
- # conan remote add cppfw $MYCI_CONAN_REMOTE
570
- # conan create conan --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION
571
- # - name: deploy conan package
572
- # run: |
573
- # conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER
574
- # conan upload --check --remote cppfw $PACKAGE_NAME/$PACKAGE_VERSION@$MYCI_CONAN_USER/main
575
- # if: startsWith(github.ref, 'refs/tags/')
522
+ conan-macosx :
523
+ strategy :
524
+ fail-fast : false
525
+ matrix :
526
+ os :
527
+ # - macos-10.15
528
+ # - macos-11
529
+ # - macos-12
530
+ - macos-latest
531
+ name : conan - ${{ matrix.os }}
532
+ runs-on : ${{ matrix.os }}
533
+ steps :
534
+ - name : workaround python2 and python3 issue when upgrading python
535
+ run : |
536
+ rm -rf /usr/local/bin/2to3*
537
+ rm -rf /usr/local/bin/idle3*
538
+ rm -rf /usr/local/bin/pydoc3*
539
+ rm -rf /usr/local/bin/python3
540
+ rm -rf /usr/local/bin/python3-config
541
+ rm -rf /usr/local/bin/python3*
542
+ rm -rf /usr/local/bin/python3*-config
543
+ - name : install clang-tidy and clang-format
544
+ run : |
545
+ brew install llvm
546
+ ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
547
+ ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"
548
+ ln -s "$(brew --prefix llvm)/bin/clang-apply-replacements" "/usr/local/bin/clang-apply-replacements"
549
+ - name : git clone
550
+ uses : myci-actions/checkout@main
551
+ - name : add cppfw tap
552
+ run : |
553
+ brew tap cppfw/tap
554
+ brew update
555
+ - name : install ci tools
556
+ run : brew install myci conan
557
+ - name : create default conan profile
558
+ run : |
559
+ conan profile detect --name default
560
+ sed -i -E "s/compiler.cppstd=.*$/compiler.cppstd=17/g" ~/.conan2/profiles/default
561
+ - name : set PACKAGE_VERSION
562
+ uses : myci-actions/export-env-var@main
563
+ with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}
564
+ if : startsWith(github.ref, 'refs/tags/')
565
+ - name : build
566
+ run : |
567
+ conan remote add cppfw $MYCI_CONAN_REMOTE
568
+ conan create conan --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION
569
+ - name : deploy conan package
570
+ run : |
571
+ conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER
572
+ conan upload --check --remote cppfw $PACKAGE_NAME/$PACKAGE_VERSION@$MYCI_CONAN_USER/main
573
+ if : startsWith(github.ref, 'refs/tags/')
576
574
0 commit comments