name: phxrpc on: push: pull_request: tags: - v* jobs: build: strategy: matrix: toolchain: - host.gcc - aarch64-linux-gnu - arm-linux-gnueabihf - mipsel-linux-gnu build_type: [Debug, Release] runs-on: ubuntu-22.04 container: image: tqcq/aw-centos:8 steps: - uses: actions/checkout@v4 - name: build run: | mkdir build && cd build cmake .. -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAINS}/${{matrix.toolchain}}.toolchain.cmake \ -DCMAKE_INSTALL_PREFIX=install/phxrpc make -j`nproc` install rm -rf install/phxrpc/lib/cmake install/phxrpc/lib/libproto* install/phxrpc/lib/pkgconfig - name: upload-artifact uses: actions/upload-artifact@v3 with: name: phxrpc-${{matrix.toolchain}}-${{matrix.build_type}}.zip compression-level: 9 path: build/install