tests: add initial build.yml #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: Compile hashpipe.so | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - uds-to-grpc | |
| - test-build-action | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-default: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up build environment | |
| run: | | |
| # Install build-time dependencies for hashpipe | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends build-essential git autoconf automake libtool g++ make | |
| # Build and Install Hashpipe (from original Dockerfile) | |
| git clone --depth 1 https://github.com/david-macmahon/hashpipe.git /tmp/hashpipe | |
| cd /tmp/hashpipe/src | |
| autoreconf -is | |
| ./configure --prefix=/usr/local | |
| make | |
| sudo make install | |
| - name: Compile hashpipe.so with default Makefile | |
| working-directory: panoseti_daq # Assuming panoseti_daq is at the root of your repo | |
| run: make | |
| build-aarch64: | |
| runs-on: ubuntu-latest # You might need a self-hosted runner with aarch64 or a specialized GitHub Actions runner for actual aarch64 compilation. For a compilation check, ubuntu-latest might suffice if it can cross-compile. | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up build environment | |
| run: | | |
| # Install build-time dependencies for hashpipe | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends build-essential git autoconf automake libtool g++ make | |
| # Build and Install Hashpipe (from original Dockerfile) | |
| git clone --depth 1 https://github.com/david-macmahon/hashpipe.git /tmp/hashpipe | |
| cd /tmp/hashpipe/src | |
| autoreconf -is | |
| ./configure --prefix=/usr/local | |
| make | |
| sudo make install | |
| - name: Compile hashpipe.so with Makefile.aarch64 | |
| working-directory: panoseti_daq # Assuming panoseti_daq is at the root of your repo | |
| run: make -f Makefile.aarch64 |