Merge pull request #6 from springmeyer/renovate/actions-checkout-5.x #4
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: Build | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build-linux: | |
| name: Build on Linux (${{ matrix.arch }}) | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - arch: x86_64 | |
| runner: ubuntu-latest | |
| - arch: arm64 | |
| runner: ubuntu-24.04-arm | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake curl | |
| - name: Build project | |
| run: make | |
| - name: Verify executables | |
| run: | | |
| ls -lh webserver webclient | |
| file webserver webclient | |
| - name: Run basic test | |
| run: | | |
| # Start webserver in background | |
| ./webserver & | |
| WEBSERVER_PID=$! | |
| # Wait for server to start | |
| sleep 2 | |
| # Test with curl | |
| curl -f http://127.0.0.1:8000/ || (kill $WEBSERVER_PID; exit 1) | |
| # Run webclient test | |
| ./webclient || (kill $WEBSERVER_PID; exit 1) | |
| # Stop webserver | |
| kill $WEBSERVER_PID | |
| echo "Tests passed!" |