Skip to content

docs: add ABI contract validation gate #12

docs: add ABI contract validation gate

docs: add ABI contract validation gate #12

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
gcc-version: 9
- os: ubuntu-latest
gcc-version: 11
- os: macos-latest
gcc-version: 14
- os: macos-latest
gcc-version: 15
steps:
- uses: actions/checkout@v4
- name: Check helper docs
run: make check-helper-docs
- name: Install GCC ${{ matrix.gcc-version }}
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y gcc-${{ matrix.gcc-version }} g++-${{ matrix.gcc-version }}
echo "CC=gcc-${{ matrix.gcc-version }}" >> $GITHUB_ENV
echo "CXX=g++-${{ matrix.gcc-version }}" >> $GITHUB_ENV
- name: Install GCC ${{ matrix.gcc-version }}
if: matrix.os == 'macos-latest'
run: |
brew install gcc@${{ matrix.gcc-version }}
echo "CC=gcc-${{ matrix.gcc-version }}" >> $GITHUB_ENV
echo "CXX=g++-${{ matrix.gcc-version }}" >> $GITHUB_ENV
- name: Build runtime
run: make runtime
- name: Build plugin
run: make plugin
- name: Run Tests
run: make test
- name: Install
run: sudo make install
- name: Test installation
run: |
echo '#include <ternary.h>' > test_install.c
echo 'int main() { return 0; }' >> test_install.c
$CC -I/usr/local/include/ternary -c test_install.c -o test_install.o