Do not forget to flush. #20
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: SynFlood | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| zig-version: | |
| - '0.12.0' | |
| - '0.13.0' | |
| - '0.14.0' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install libnet | |
| run: sudo apt-get update && sudo apt-get install -y libnet1 libnet1-dev | |
| - name: Download Zig ${{ matrix.zig-version }} | |
| run: | | |
| ZIG_VERSION=${{ matrix.zig-version }} | |
| ZIG_URL="https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz" | |
| curl -s -L "${ZIG_URL}" | tar -xJ | |
| echo "$(pwd)/zig-linux-x86_64-${ZIG_VERSION}" >> ${GITHUB_PATH} | |
| - name: Check Zig version | |
| run: zig version | |
| - name: Build | |
| run: zig build | |
| - name: Check help | |
| run: ./zig-out/bin/synflood-x86_64-linux --help |