@@ -16,25 +16,19 @@ jobs:
1616 - name : set UCVM_INSTALL_PATH
1717 run : echo "UCVM_INSTALL_PATH=$RUNNER_WORKSPACE/canvas/target" >> $GITHUB_ENV
1818# ## build ucvm(main) first
19- - id : get-ucvm
19+ - name : get-ucvm
2020 uses : actions/checkout@v2
2121 with :
2222 repository : ' SCECcode/UCVM'
2323 ref : testMei
2424 path : ucvm
2525 - id : build-ucvm
26+ name : build ucvm
2627 uses : ./ucvm/.github/actions/build-ucvm-action
2728 with :
2829 initiating-repo : ' canvas'
2930 target-model : ' canvas'
30- # - name: Start SSH via Ngrok
31- # if: ${{ failure() }}
32- # uses: luchihoratiu/debug-via-ssh@main
33- # with:
34- # NGROK_AUTH_TOKEN: ${{ secrets.NGROK_TOKEN }}
35- # NGROK_TIMEOUT: 3000
36- # SSH_PASS: ${{ secrets.NGROK_SECRET }}
37- - id : get-result
31+ - name : get-result
3832 run : more ${{ steps.build-ucvm.outputs.build-log }}
3933 shell : bash
4034 - name : move stock canvas away
@@ -58,16 +52,62 @@ jobs:
5852 - name : test canvas with ucvm
5953 run : (cd $RUNNER_WORKSPACE/canvas/ucvm/work/model/canvas; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/canvas-test-ucvm.sh)
6054 shell : bash
61- # - name: Start SSH via Ngrok
62- # if: ${{ success() }}
63- # uses: luchihoratiu/debug-via-ssh@main
64- # with:
65- # NGROK_AUTH_TOKEN: ${{ secrets.NGROK_TOKEN }}
66- # NGROK_TIMEOUT: 3000
67- # SSH_PASS: ${{ secrets.NGROK_SECRET }}
6855 - name : test canvas under ucvm
6956 run : (cd $RUNNER_WORKSPACE/canvas/ucvm; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/ucvm-test.sh)
7057 shell : bash
7158
59+ canvas-build-ucvm-mac :
60+ runs-on : macos-latest
61+ strategy :
62+ matrix :
63+ python-version : [3.7]
64+ steps :
65+ - name : set UCVM_SRC_PATH
66+ run : echo "UCVM_SRC_PATH=$RUNNER_WORKSPACE/canvas/ucvm" >> $GITHUB_ENV
67+ - name : set UCVM_INSTALL_PATH
68+ run : echo "UCVM_INSTALL_PATH=$RUNNER_WORKSPACE/canvas/target" >> $GITHUB_ENV
69+ # ## build ucvm(main) first
70+ - name : get-ucvm
71+ uses : actions/checkout@v2
72+ with :
73+ repository : ' SCECcode/UCVM'
74+ ref : testMei
75+ path : ucvm
76+ - id : build-ucvm
77+ name : build ucvm
78+ uses : ./ucvm/.github/actions/build-ucvm-action
79+ with :
80+ initiating-repo : ' canvas'
81+ target-model : ' canvas'
82+ - name : get-result
83+ run : more ${{ steps.build-ucvm.outputs.build-log }}
84+ shell : bash
85+ - name : move stock canvas away
86+ run : (rm -rf $RUNNER_WORKSPACE/canvas/ucvm/work/model/canvas)
87+ shell : bash
88+ # ## build canvas from github
89+ - name : checkout canvas main
90+ uses : actions/checkout@v2
91+ with :
92+ path : canvas
93+ - name : move it to the right location
94+ run : (mv canvas $RUNNER_WORKSPACE/canvas/ucvm/work/model; pwd; ls)
95+ shell : bash
96+ - name : build canvas as part of ucvm
97+ run : (cd $RUNNER_WORKSPACE/canvas/ucvm/work/model/canvas; ./.github/scripts/canvas-build.sh)
98+ shell : bash
99+ # ## check ucvm is still valid
100+ - name : check on ucvm
101+ run : (source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ucvm_query -H)
102+ shell : bash
103+ - name : test canvas with ucvm
104+ run : (cd $RUNNER_WORKSPACE/canvas/ucvm/work/model/canvas; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/canvas-test-ucvm.sh)
105+ shell : bash
106+ - name : test canvas under ucvm
107+ run : (cd $RUNNER_WORKSPACE/canvas/ucvm; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/ucvm-test.sh)
108+ shell : bash
109+
110+
111+
72112
73113
0 commit comments