Skip to content

CI: Add single file libs generation and build #118

CI: Add single file libs generation and build

CI: Add single file libs generation and build #118

Workflow file for this run

name: Posix
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
jobs:
build:
strategy:
matrix:
config: [ Debug, Release ]
params: [ { os: ubuntu-latest },
{ os: macos-latest } ]
runs-on: ${{ matrix.params.os }}
timeout-minutes: 8
steps:
- uses: actions/checkout@v4
- name: install
run: |
sudo apt-get update
sudo apt-get install -y liburing-dev
if: matrix.params.os == 'ubuntu-latest'
# Install 7zip just to check that links are still valid
- name: package install 7zip
run: ./SC.sh package install 7zip
- name: Generate Single File Libs (Python)
run: python3 Support/SingleFileLibs/python/amalgamate_single_file_libs.py
- name: configure SCTest
run: ./SC.sh build configure SCTest ${{ matrix.config }}
- name: configure SCSingleFileLibs
run: ./SC.sh build configure "SCSingleFileLibs:" ${{ matrix.config }}
- name: compile single file libs
run: ./SC.sh build compile "SCSingleFileLibs:" ${{ matrix.config }}
- name: compile
run: ./SC.sh build compile SCTest ${{ matrix.config }}
- name: test
run: ./SC.sh build run SCTest ${{ matrix.config }}
# - name: install gdb
# run: sudo apt install -y gdb
# - name: test in gdb
# run: gdb --batch -ex "run" -ex "quit" --args _Build/_Outputs/linux-x86_64-make-gcc-Debug/SCTest
# - name: test in lldb
# run: lldb -o "run" -o "quit" -- _Build/_Outputs/macOS-x86_64-make-clang-Debug/SCTest