From 63c20c26069dcb7e2348aa7369d46d71ad7f83ef Mon Sep 17 00:00:00 2001 From: dmitry Date: Sun, 12 Sep 2021 16:29:49 +0300 Subject: [PATCH] build: added test-ci for aarch64 --- .github/workflows/build.yml | 41 ++++++++++++++++++++++++++++++------- meson.build | 3 +-- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb3213e..ce0d204 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,20 +16,20 @@ jobs: strategy: matrix: include: - - type: windows - bin: yapb.dll - opts: meson setup build --cross-file=x86-windows - - - type: linux + - name: linux-x86 bin: yapb.so opts: CXX=gcc-11 CXX_LD=gold meson setup build - - type: macos + - name: windows-x86 + bin: yapb.dll + opts: meson setup build --cross-file=x86-windows + + - name: macos-x86 bin: yapb.dylib opts: meson setup build --cross-file=x86-darwin + name: ${{ matrix.name }} - name: ${{ matrix.type }} runs-on: ubuntu-latest container: j4sdk/x86-buildtools:latest @@ -54,6 +54,33 @@ jobs: name: ${{ matrix.bin }} path: build/${{ matrix.bin }} + linux-aarch64: + name: linux-aarch64 + + runs-on: self-hosted + continue-on-error: true + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: true + + - name: Configure Build + run: | + CXX=clang-12 CXX_LD=lld meson setup build + + - name: Compile Source + run: | + meson compile -v -C build + + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: yapb.aarch64.so + path: build/yapb.so + publish: if: | github.event_name == 'release' && diff --git a/meson.build b/meson.build index 15a65f2..d69a34a 100644 --- a/meson.build +++ b/meson.build @@ -19,13 +19,12 @@ project ( 'warning_level=3', 'werror=true', 'backend=ninja', - 'strip=true', 'optimization=3', 'default_library=static', 'cpp_eh=none', 'b_vscrt=static_from_buildtype', 'b_lto=true', - 'b_lundef=false', + 'b_lundef=true', ], meson_version: '>=0.56.0')