Files
phxrpc/.gitea/workflows/build.yaml
tqcq f1ac87c160
All checks were successful
phxrpc / build (Debug, aarch64-linux-gnu) (push) Successful in 3m57s
phxrpc / build (Debug, host.gcc) (push) Successful in 4m0s
phxrpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m7s
phxrpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 28m44s
phxrpc / build (Release, aarch64-linux-gnu) (push) Successful in 3m59s
phxrpc / build (Release, host.gcc) (push) Successful in 4m46s
phxrpc / build (Release, mipsel-linux-gnu) (push) Successful in 3m26s
phxrpc / build (Release, arm-linux-gnueabihf) (push) Successful in 9m11s
init repo.
2025-08-06 16:06:13 +08:00

36 lines
1021 B
YAML

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