build: added test-ci for aarch64
This commit is contained in:
parent
9a1b5deeef
commit
63c20c2606
2 changed files with 35 additions and 9 deletions
41
.github/workflows/build.yml
vendored
41
.github/workflows/build.yml
vendored
|
|
@ -16,20 +16,20 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- type: windows
|
- name: linux-x86
|
||||||
bin: yapb.dll
|
|
||||||
opts: meson setup build --cross-file=x86-windows
|
|
||||||
|
|
||||||
- type: linux
|
|
||||||
bin: yapb.so
|
bin: yapb.so
|
||||||
opts: CXX=gcc-11 CXX_LD=gold meson setup build
|
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
|
bin: yapb.dylib
|
||||||
opts: meson setup build --cross-file=x86-darwin
|
opts: meson setup build --cross-file=x86-darwin
|
||||||
|
|
||||||
|
name: ${{ matrix.name }}
|
||||||
|
|
||||||
name: ${{ matrix.type }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: j4sdk/x86-buildtools:latest
|
container: j4sdk/x86-buildtools:latest
|
||||||
|
|
||||||
|
|
@ -54,6 +54,33 @@ jobs:
|
||||||
name: ${{ matrix.bin }}
|
name: ${{ matrix.bin }}
|
||||||
path: build/${{ 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:
|
publish:
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'release' &&
|
github.event_name == 'release' &&
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,12 @@ project (
|
||||||
'warning_level=3',
|
'warning_level=3',
|
||||||
'werror=true',
|
'werror=true',
|
||||||
'backend=ninja',
|
'backend=ninja',
|
||||||
'strip=true',
|
|
||||||
'optimization=3',
|
'optimization=3',
|
||||||
'default_library=static',
|
'default_library=static',
|
||||||
'cpp_eh=none',
|
'cpp_eh=none',
|
||||||
'b_vscrt=static_from_buildtype',
|
'b_vscrt=static_from_buildtype',
|
||||||
'b_lto=true',
|
'b_lto=true',
|
||||||
'b_lundef=false',
|
'b_lundef=true',
|
||||||
],
|
],
|
||||||
meson_version: '>=0.56.0')
|
meson_version: '>=0.56.0')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue