diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7e7f789 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + paths: + - 'rapidyenc/**' + +jobs: + build: + name: Build ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest ] + include: + - os: ubuntu-latest + linux_arch: x86_64 + - os: ubuntu-latest + linux_arch: aarch64 + + steps: + - uses: actions/checkout@v4 + - name: Set up QEMU + if: runner.os == 'Linux' && matrix.linux_arch == 'aarch64' + uses: docker/setup-qemu-action@v3 + with: + platforms: all + - name: Build rapidyenc + run: | + cmake -S rapidyenc -B rapidyenc/build + cmake --build rapidyenc/build --target rapidyenc_static -j2