clang-format #12
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: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y zlib1g-dev | |
| - name: Build | |
| run: make | |
| - name: Run tests | |
| run: make test | |
| cross-compile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install cross-compilers | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| gcc-aarch64-linux-gnu \ | |
| gcc-arm-linux-gnueabi \ | |
| gcc-arm-linux-gnueabihf \ | |
| gcc-i686-linux-gnu \ | |
| gcc-mips-linux-gnu \ | |
| gcc-mipsel-linux-gnu \ | |
| gcc-mips64-linux-gnuabi64 \ | |
| gcc-mips64el-linux-gnuabi64 \ | |
| gcc-powerpc-linux-gnu \ | |
| gcc-powerpc64-linux-gnu \ | |
| gcc-powerpc64le-linux-gnu \ | |
| gcc-riscv64-linux-gnu \ | |
| gcc-s390x-linux-gnu | |
| # TODO: loongarch64 — no gcc-loongarch64-linux-gnu package in Ubuntu. | |
| # TODO: armeb — no big-endian ARM package in Ubuntu. | |
| - name: Cross-compile all targets | |
| run: make cross |