Skip to content

Commit ade4859

Browse files
committed
CI: Support lfortran submodule
1 parent 91d5fd3 commit ade4859

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/workflows/CI.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v3
2626
with:
27+
submodules: true
2728
fetch-depth: 0
2829

30+
- name: Git Submodule Update
31+
shell: bash -e -l {0}
32+
run: |
33+
git submodule update --init --recursive
34+
2935
- name: Cache conda
3036
uses: actions/cache@v3
3137
env:
@@ -122,8 +128,14 @@ jobs:
122128
steps:
123129
- uses: actions/checkout@v3
124130
with:
131+
submodules: true
125132
fetch-depth: 0
126133

134+
- name: Git Submodule Update
135+
shell: bash -e -l {0}
136+
run: |
137+
git submodule update --init --recursive
138+
127139
- uses: mamba-org/setup-micromamba@v1
128140
with:
129141
environment-file: ci/environment.yml
@@ -190,8 +202,14 @@ jobs:
190202
steps:
191203
- uses: actions/checkout@v3
192204
with:
205+
submodules: true
193206
fetch-depth: 0
194207

208+
- name: Git Submodule Update
209+
shell: bash -e -l {0}
210+
run: |
211+
git submodule update --init --recursive
212+
195213
- uses: mamba-org/setup-micromamba@v1
196214
with:
197215
environment-file: ci/environment.yml
@@ -256,8 +274,14 @@ jobs:
256274
steps:
257275
- uses: actions/checkout@v3
258276
with:
277+
submodules: true
259278
fetch-depth: 0
260279

280+
- name: Git Submodule Update
281+
shell: bash -e -l {0}
282+
run: |
283+
git submodule update --init --recursive
284+
261285
- uses: mamba-org/setup-micromamba@v1
262286
with:
263287
environment-file: ci/environment.yml
@@ -303,8 +327,14 @@ jobs:
303327
steps:
304328
- uses: actions/checkout@v3
305329
with:
330+
submodules: true
306331
fetch-depth: 0
307332

333+
- name: Git Submodule Update
334+
shell: bash -e -l {0}
335+
run: |
336+
git submodule update --init --recursive
337+
308338
- uses: mamba-org/setup-micromamba@v1
309339
with:
310340
environment-file: ci/environment.yml
@@ -351,8 +381,14 @@ jobs:
351381
steps:
352382
- uses: actions/checkout@v3
353383
with:
384+
submodules: true
354385
fetch-depth: 0
355386

387+
- name: Git Submodule Update
388+
shell: bash -e -l {0}
389+
run: |
390+
git submodule update --init --recursive
391+
356392
- uses: mamba-org/setup-micromamba@v1
357393
with:
358394
environment-file: ci/environment.yml
@@ -395,8 +431,14 @@ jobs:
395431
steps:
396432
- uses: actions/checkout@v3
397433
with:
434+
submodules: true
398435
fetch-depth: 0
399436

437+
- name: Git Submodule Update
438+
shell: bash -e -l {0}
439+
run: |
440+
git submodule update --init --recursive
441+
400442
- uses: mamba-org/setup-micromamba@v1
401443
with:
402444
environment-file: ci/environment.yml
@@ -444,8 +486,14 @@ jobs:
444486
steps:
445487
- uses: actions/checkout@v3
446488
with:
489+
submodules: true
447490
fetch-depth: 0
448491

492+
- name: Git Submodule Update
493+
shell: bash -e -l {0}
494+
run: |
495+
git submodule update --init --recursive
496+
449497
- uses: mamba-org/setup-micromamba@v1
450498
with:
451499
environment-name: lp
@@ -507,8 +555,14 @@ jobs:
507555
steps:
508556
- uses: actions/checkout@v4
509557
with:
558+
submodules: true
510559
fetch-depth: 0
511560

561+
- name: Git Submodule Update
562+
shell: bash -e -l {0}
563+
run: |
564+
git submodule update --init --recursive
565+
512566
- uses: mamba-org/setup-micromamba@v1.8.0
513567
with:
514568
environment-file: ci/environment_linux_llvm.yml
@@ -552,8 +606,14 @@ jobs:
552606
steps:
553607
- uses: actions/checkout@v3
554608
with:
609+
submodules: true
555610
fetch-depth: 0
556611

612+
- name: Git Submodule Update
613+
shell: bash -e -l {0}
614+
run: |
615+
git submodule update --init --recursive
616+
557617
- uses: mamba-org/setup-micromamba@v1
558618
with:
559619
environment-file: ci/environment.yml
@@ -594,8 +654,14 @@ jobs:
594654
steps:
595655
- uses: actions/checkout@v4
596656
with:
657+
submodules: true
597658
fetch-depth: 0
598659

660+
- name: Git Submodule Update
661+
shell: bash -e -l {0}
662+
run: |
663+
git submodule update --init --recursive
664+
599665
- uses: mamba-org/setup-micromamba@v1
600666
with:
601667
environment-file: ci/environment.yml

ci/create_source_tarball0.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ cmake -E copy_directory src $dest/src
99
cmake -E copy_directory share $dest/share
1010
cmake -E copy_directory cmake $dest/cmake
1111
cmake -E copy_directory examples $dest/examples
12+
cmake -E copy_directory lfortran/src/libasr $dest/lfortran/src/libasr
1213

1314
# Copy Files:
1415
cmake -E copy CMakeLists.txt README.md LICENSE lp_version $dest

0 commit comments

Comments
 (0)