chore: add rattler-build recipe and version check to release workflow #65
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| compiler: [gcc, clang] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build mat.c | |
| run: ${{ matrix.compiler }} -O2 -Wall -Wextra -Werror -c mat.c -o mat.o | |
| - name: Build and run tests | |
| run: make check CC=${{ matrix.compiler }} | |
| examples: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - cc: gcc | |
| cxx: g++ | |
| - cc: clang | |
| cxx: clang++ | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build examples | |
| run: make examples CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} | |
| sanitizers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Test with ASan and UBSan | |
| run: make check CFLAGS="-fsanitize=address,undefined -g -Wall -Wextra -I." |