Skip to content

Commit 0da7e87

Browse files
author
meihuisu
committed
wip ci
1 parent 1370745 commit 0da7e87

2 files changed

Lines changed: 57 additions & 16 deletions

File tree

.github/scripts/ivlsu-test-ucvm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
cd test
66

7-
make run_unit |& tee result_unit.txt
7+
make run_unit >& result_unit.txt
8+
cat result_unit.txt
89

910
p=`grep -c failed result_unit.txt`
1011
if [ $p != 0 ]; then

.github/workflows/ivlsu-ucvm-ci.yml

Lines changed: 55 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,13 @@ jobs:
2222
repository: 'SCECcode/UCVM'
2323
ref: testMei
2424
path: ucvm
25-
- name: build-ucvm
25+
- id: build-ucvm
26+
name: build ucvm
2627
uses: ./ucvm/.github/actions/build-ucvm-action
2728
with:
2829
initiating-repo: 'ivlsu'
2930
target-model: 'ivlsu'
3031
target-branch: 'testMei'
31-
# - name: Start SSH via Ngrok
32-
# if: ${{ success() }}
33-
# uses: luchihoratiu/debug-via-ssh@main
34-
# with:
35-
# NGROK_AUTH_TOKEN: ${{ secrets.NGROK_TOKEN }}
36-
# NGROK_TIMEOUT: 3000
37-
# SSH_PASS: ${{ secrets.NGROK_SECRET }}
3832
- name: get-result ${{ steps.build-ucvm.outputs.build-log }}
3933
run: more ${{ steps.build-ucvm.outputs.build-log }}
4034
shell: bash
@@ -59,16 +53,62 @@ jobs:
5953
- name: test ivlsu with ucvm
6054
run: (cd $RUNNER_WORKSPACE/ivlsu/ucvm/work/model/ivlsu; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/ivlsu-test-ucvm.sh)
6155
shell: bash
62-
# - name: Start SSH via Ngrok
63-
# if: ${{ success() }}
64-
# uses: luchihoratiu/debug-via-ssh@main
65-
# with:
66-
# NGROK_AUTH_TOKEN: ${{ secrets.NGROK_TOKEN }}
67-
# NGROK_TIMEOUT: 3000
68-
# SSH_PASS: ${{ secrets.NGROK_SECRET }}
6956
- name: test ivlsu under ucvm
7057
run: (cd $RUNNER_WORKSPACE/ivlsu/ucvm; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/ucvm-test.sh)
7158
shell: bash
7259

60+
ivlsu-build-ucvm-mac:
61+
runs-on: macos-latest
62+
strategy:
63+
matrix:
64+
python-version: [3.7]
65+
steps:
66+
- name: set UCVM_SRC_PATH
67+
run: echo "UCVM_SRC_PATH=$RUNNER_WORKSPACE/ivlsu/ucvm" >> $GITHUB_ENV
68+
- name: set UCVM_INSTALL_PATH
69+
run: echo "UCVM_INSTALL_PATH=$RUNNER_WORKSPACE/ivlsu/target" >> $GITHUB_ENV
70+
### build ucvm(main) first
71+
- name: get-ucvm
72+
uses: actions/checkout@v2
73+
with:
74+
repository: 'SCECcode/UCVM'
75+
ref: testMei
76+
path: ucvm
77+
- id: build-ucvm
78+
name: build ucvm
79+
uses: ./ucvm/.github/actions/build-ucvm-action
80+
with:
81+
initiating-repo: 'ivlsu'
82+
target-model: 'ivlsu'
83+
target-branch: 'testMei'
84+
- name: get-result ${{ steps.build-ucvm.outputs.build-log }}
85+
run: more ${{ steps.build-ucvm.outputs.build-log }}
86+
shell: bash
87+
- name: move stock ivlsu away
88+
run: (rm -rf $RUNNER_WORKSPACE/ivlsu/ucvm/work/model/ivlsu)
89+
shell: bash
90+
### build ivlsu from github
91+
- name: checkout ivlsu main
92+
uses: actions/checkout@v2
93+
with:
94+
path: ivlsu
95+
- name: move it to the right location
96+
run: (mv ivlsu $RUNNER_WORKSPACE/ivlsu/ucvm/work/model; pwd; ls)
97+
shell: bash
98+
- name: build ivlsu as part of ucvm
99+
run: (cd $RUNNER_WORKSPACE/ivlsu/ucvm/work/model/ivlsu; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/ivlsu-build.sh)
100+
shell: bash
101+
### check ucvm is still valid
102+
- name: check on ucvm
103+
run: (source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ucvm_query -H)
104+
shell: bash
105+
- name: test ivlsu with ucvm
106+
run: (cd $RUNNER_WORKSPACE/ivlsu/ucvm/work/model/ivlsu; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/ivlsu-test-ucvm.sh)
107+
shell: bash
108+
- name: test ivlsu under ucvm
109+
run: (cd $RUNNER_WORKSPACE/ivlsu/ucvm; source $UCVM_INSTALL_PATH/conf/ucvm_env.sh; ./.github/scripts/ucvm-test.sh)
110+
shell: bash
111+
112+
73113

74114

0 commit comments

Comments
 (0)