@@ -572,3 +572,52 @@ jobs:
572572 conan upload --check --remote cppfw $PACKAGE_NAME/$PACKAGE_VERSION@$MYCI_CONAN_USER/main
573573 if : startsWith(github.ref, 'refs/tags/')
574574
575+ # #### conan - emscripten #####
576+ conan-emscripten :
577+ strategy :
578+ fail-fast : false
579+ matrix :
580+ include :
581+ # - {os: ubuntu, codename: noble, image_owner: }
582+ - {os: debian, codename: bookworm, image_owner: }
583+ # - {os: debian, codename: bookworm, image_owner: i386/, labels: [i386,docker]}
584+ # - {os: debian, codename: bookworm, image_owner: , labels: [arm32,docker]}
585+ # - {os: debian, codename: bookworm, image_owner: , labels: [arm64,docker]}
586+ runs-on : ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}
587+ container : ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
588+ name : conan - emscripten | ${{ matrix.labels[0] }}
589+ steps :
590+ - name : add cppfw deb repo
591+ uses : myci-actions/add-deb-repo@main
592+ with :
593+ repo : deb https://gagis.hopto.org/repo/cppfw/${{ matrix.os }} ${{ matrix.codename }} main
594+ repo-name : cppfw
595+ keys-asc : https://gagis.hopto.org/repo/cppfw/pubkey.gpg
596+ install : devscripts equivs myci pipx cmake git nodejs
597+ - name : add ~/.local/bin to PATH
598+ uses : myci-actions/export-env-var@main
599+ with : {name: PATH, value: "$PATH:$HOME/.local/bin"}
600+ - name : install conan
601+ run : pipx install conan
602+ - name : create default conan profile
603+ run : |
604+ conan profile detect --name default
605+ sed -i -E "s/compiler.cppstd=.*$/compiler.cppstd=17/g" ~/.conan2/profiles/default
606+ - name : git clone
607+ uses : myci-actions/checkout@main
608+ with :
609+ submodules : false
610+ - name : set PACKAGE_VERSION
611+ uses : myci-actions/export-env-var@main
612+ with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}
613+ if : startsWith(github.ref, 'refs/tags/')
614+ - name : build
615+ run : |
616+ conan remote add cppfw $MYCI_CONAN_REMOTE
617+ # NOTE: specifying empty test folder to skip the test stage
618+ conan create conan --profile:build default --profile:host emscripten/conan.profile --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION --test-folder ""
619+ - name : deploy conan package
620+ run : |
621+ conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER
622+ conan upload --check --remote cppfw $PACKAGE_NAME/$PACKAGE_VERSION@$MYCI_CONAN_USER/main
623+ if : startsWith(github.ref, 'refs/tags/')
0 commit comments