|
5 | 5 | branches: [ main ] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - sjfz-build-ucvm-mac: |
9 | | - runs-on: macos-latest |
10 | | - strategy: |
11 | | - matrix: |
12 | | - python-version: [3.7] |
13 | | - steps: |
14 | | - - name: set UCVM_SRC_PATH |
15 | | - run: echo "UCVM_SRC_PATH=$RUNNER_WORKSPACE/sjfz/ucvm" >> $GITHUB_ENV |
16 | | - - name: set UCVM_INSTALL_PATH |
17 | | - run: echo "UCVM_INSTALL_PATH=$RUNNER_WORKSPACE/sjfz/target" >> $GITHUB_ENV |
18 | | -### build ucvm(main) first |
19 | | - - id: get-ucvm |
20 | | - uses: actions/checkout@v2 |
21 | | - with: |
22 | | - repository: 'SCECcode/UCVM' |
23 | | -## ref: main |
24 | | - ref: withSCPBR |
25 | | - path: ucvm |
26 | | - - id: look-around |
27 | | - run: ( echo " sjfz-ucvm-ci:pwd =>";pwd; |
28 | | - echo " sjfz-ucvm-ci:UCVM_SRC_PATH =>"$UCVM_SRC_PATH; |
29 | | - echo " sjfz-ucvm-ci:UCVM_INSTALL_PATH =>"$UCVM_INSTALL_PATH; |
30 | | - echo " sjfz-ucvm-ci:RUNNER_WORKSPACE =>"$RUNNER_WORKSPACE; |
31 | | - echo " sjfz-ucvm-ci:github.action_path =>"${{ github.action_path }};) |
32 | | - shell: bash |
33 | | - - id: build_ucvm |
34 | | - name: building ucvm from ucvm actions/build-ucvm-action |
35 | | - uses: ./ucvm/.github/actions/build-ucvm-action |
36 | | - with: |
37 | | - initiating-repo: 'sjfz' |
38 | | - target-model: 'sjfz' |
39 | | - - name: get-result |
40 | | - run: more ${{ steps.build-ucvm.outputs.build-log }} |
41 | | - shell: bash |
42 | | - - name: move stock sjfz away |
43 | | - run: (rm -rf $RUNNER_WORKSPACE/sjfz/ucvm/work/model/sjfz) |
44 | | - shell: bash |
45 | | -### build sjfz from github |
46 | | - - name: checkout sjfz main |
47 | | - uses: actions/checkout@v2 |
48 | | - with: |
49 | | - ref: main |
50 | | - path: sjfz |
51 | | - - name: move it to the right location |
52 | | - run: (mv sjfz $RUNNER_WORKSPACE/sjfz/ucvm/work/model; pwd; ls) |
53 | | - shell: bash |
54 | | - - name: build sjfz as part of ucvm |
55 | | - run: (cd $RUNNER_WORKSPACE/sjfz/ucvm/work/model/sjfz; ./.github/scripts/sjfz-build.sh) |
56 | | - shell: bash |
57 | | -### check ucvm is still valid |
58 | | - - name: check on ucvm |
59 | | - run: (source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ucvm_query -H) |
60 | | - shell: bash |
61 | | - - name: test sjfz with ucvm |
62 | | - run: (cd $RUNNER_WORKSPACE/sjfz/ucvm/work/model/sjfz; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/sjfz-test-ucvm.sh) |
63 | | - shell: bash |
64 | | - - name: test sjfz under ucvm |
65 | | - run: (cd $RUNNER_WORKSPACE/sjfz/ucvm; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/ucvm-test.sh) |
66 | | - shell: bash |
67 | | - |
68 | 8 | sjfz-build-ucvm-linux: |
69 | 9 | runs-on: ubuntu-latest |
70 | 10 | strategy: |
|
81 | 21 | with: |
82 | 22 | repository: 'SCECcode/UCVM' |
83 | 23 | ## ref: main |
84 | | - ref: withSCPBR |
| 24 | + ref: testMei |
85 | 25 | path: ucvm |
86 | 26 | # - name: Start SSH via Ngrok |
87 | 27 | # if: ${{ success() }} |
|
95 | 35 | with: |
96 | 36 | initiating-repo: 'sjfz' |
97 | 37 | target-model: 'sjfz' |
| 38 | + target-branch: 'testMei' |
98 | 39 | - id: get-result |
99 | 40 | run: more ${{ steps.build-ucvm.outputs.build-log }} |
100 | 41 | shell: bash |
|
0 commit comments