feat: add CI workflow for Linux and macOS builds #1
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, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential autoconf automake libtool pkg-config | |
| - name: Generate configure | |
| run: ./autogen.sh | |
| - name: Configure with Radiant support | |
| run: ./configure --enable-rxd | |
| - name: Build | |
| run: make -j$(nproc) | |
| - name: Run tests | |
| run: make check | |
| continue-on-error: true | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| brew install autoconf automake libtool pkg-config | |
| - name: Generate configure | |
| run: ./autogen.sh | |
| - name: Configure with Radiant support | |
| run: ./configure --enable-rxd | |
| - name: Build | |
| run: make -j$(sysctl -n hw.ncpu) | |
| - name: Run tests | |
| run: make check | |
| continue-on-error: true |