Skip to content

Commit 80f1158

Browse files
committed
CI: Add single file libs generation and build
1 parent d2c2af7 commit 80f1158

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.github/workflows/documentation_coverage.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
timeout-minutes: 40
3333
steps:
3434
- uses: actions/checkout@v4
35+
- name: Generate Single File Libs (Python)
36+
run: python3 Support/SingleFileLibs/python/amalgamate_single_file_libs.py
37+
- name: Generate Single File Libs (Javascript)
38+
run: node Support/SingleFileLibs/javascript/cli.js --repo-root . --ref HEAD --all --out _Build/_SingleFileLibrariesJS
39+
- name: Check if Single File Libs are equal
40+
run: python3 Support/SingleFileLibs/check_if_equal.py _Build/_SingleFileLibraries _Build/_SingleFileLibrariesJS
3541
- name: install
3642
run: |
3743
sudo apt-get update

.github/workflows/posix.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ jobs:
2929
# Install 7zip just to check that links are still valid
3030
- name: package install 7zip
3131
run: ./SC.sh package install 7zip
32-
- name: configure
32+
- name: Generate Single File Libs (Python)
33+
run: python3 Support/SingleFileLibs/python/amalgamate_single_file_libs.py
34+
- name: configure SCTest
3335
run: ./SC.sh build configure SCTest ${{ matrix.config }}
34-
- name: build
36+
- name: configure SCSingleFileLibs
37+
run: ./SC.sh build configure "SCSingleFileLibs:" ${{ matrix.config }}
38+
- name: compile single file libs
39+
run: ./SC.sh build compile "SCSingleFileLibs:" ${{ matrix.config }}
40+
- name: compile
3541
run: ./SC.sh build compile SCTest ${{ matrix.config }}
3642
- name: test
3743
run: ./SC.sh build run SCTest ${{ matrix.config }}

.github/workflows/windows.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,17 @@ jobs:
2222
- name: package install 7zip
2323
shell: cmd
2424
run: SC.bat package install 7zip
25-
- name: configure
25+
- name: Generate Single File Libs (Python)
26+
run: python3 Support/SingleFileLibs/python/amalgamate_single_file_libs.py
27+
- name: configure SCTest
2628
shell: cmd
2729
run: SC.bat build configure SCTest ${{ matrix.config }} ${{ matrix.params.generator }}
30+
- name: configure SCSingleFileLibs
31+
shell: cmd
32+
run: SC.bat build configure "SCSingleFileLibs:" ${{ matrix.config }} ${{ matrix.params.generator }}
33+
- name: compile single file libs
34+
shell: cmd
35+
run: SC.bat build compile "SCSingleFileLibs:" ${{ matrix.config }} ${{ matrix.params.generator }}
2836
- name: compile
2937
shell: cmd
3038
run: SC.bat build compile SCTest ${{ matrix.config }} ${{ matrix.params.generator }}

0 commit comments

Comments
 (0)