-
Notifications
You must be signed in to change notification settings - Fork 129
51 lines (39 loc) · 1.2 KB
/
merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Run Merge Script
on:
workflow_dispatch:
# run after layout verification
workflow_run:
workflows: ["Run Layout Verification"]
types:
- completed
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
# can also specify python version if needed
- name: setup python
uses: actions/setup-python@v4
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install klayout SiEPIC siepic_ebeam_pdk
python -m pip install --upgrade SiEPIC
- name: run merge script
run: |
python merge/EBeam_merge.py
- name: move merge output files to new folder
run: |
#output_files="EBeam.gds EBeam.oas EBeam.txt EBeam.coords"
output_files="EBeam.oas EBeam.txt"
IFS=' '
mkdir -p merge_output
for file in $output_files; do
cp "/home/runner/work/openEBL-2024-02/openEBL-2024-02/merge/$file" merge_output/
done
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: merge-files
path: merge_output/