Add MSVC 32bit and Android x86_64 CI.
This commit is contained in:
15
.github/workflows/PyPI-publishing.yml
vendored
15
.github/workflows/PyPI-publishing.yml
vendored
@ -1,6 +1,19 @@
|
|||||||
name: PyPI 📦 Distribution
|
name: PyPI 📦 Distribution
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- ".github/**"
|
||||||
|
- ".gitignore"
|
||||||
|
- "docs/**"
|
||||||
|
- "README"
|
||||||
|
- "CREDITS.TXT"
|
||||||
|
- "COPYING_GLIB"
|
||||||
|
- "COPYING.LGPL2"
|
||||||
|
- "AUTHORS.TXT"
|
||||||
|
- "CHANGELOG"
|
||||||
|
- "COPYING"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
144
.github/workflows/build-uc2.yml
vendored
144
.github/workflows/build-uc2.yml
vendored
@ -1,19 +1,5 @@
|
|||||||
name: Build UC2
|
name: Build UC2
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
tags-ignore:
|
|
||||||
- "*"
|
|
||||||
paths-ignore:
|
|
||||||
- ".github/**"
|
|
||||||
- ".gitignore"
|
|
||||||
- "docs/**"
|
|
||||||
- "README"
|
|
||||||
- "CREDITS.TXT"
|
|
||||||
- "COPYING_GLIB"
|
|
||||||
- "COPYING.LGPL2"
|
|
||||||
- "AUTHORS.TXT"
|
|
||||||
- "CHANGELOG"
|
|
||||||
- "COPYING"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
@ -21,7 +7,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
Windows:
|
Windows:
|
||||||
runs-on: ${{ matrix.config.os }}
|
runs-on: ${{ matrix.config.os }}
|
||||||
name: ${{ matrix.config.name }} - ${{ matrix.compiler }}
|
name: ${{ matrix.config.name }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -64,15 +50,22 @@ jobs:
|
|||||||
archiver: '7z a',
|
archiver: '7z a',
|
||||||
generators: 'Visual Studio 16 2019'
|
generators: 'Visual Studio 16 2019'
|
||||||
}
|
}
|
||||||
|
- {
|
||||||
|
os: windows-latest,
|
||||||
|
arch: x86,
|
||||||
|
python-arch: x86,
|
||||||
|
python-ver: '3.8',
|
||||||
|
name: 'windows-x86 MSVC 32bit',
|
||||||
|
msvc-arch: x86,
|
||||||
|
artifact: 'windows_msvc32.7z',
|
||||||
|
build_type: 'Debug',
|
||||||
|
archiver: '7z a',
|
||||||
|
generators: 'Visual Studio 16 2019'
|
||||||
|
}
|
||||||
compiler: [ gcc ]
|
compiler: [ gcc ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# - name: '🛠️ Python setup'
|
|
||||||
# uses: actions/setup-python@v2
|
|
||||||
# with:
|
|
||||||
# python-version: ${{ matrix.config.python-ver }}
|
|
||||||
|
|
||||||
- name: '🛠️ Win MINGW setup'
|
- name: '🛠️ Win MINGW setup'
|
||||||
if: contains(matrix.config.mingw, 'MINGW')
|
if: contains(matrix.config.mingw, 'MINGW')
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
@ -86,12 +79,12 @@ jobs:
|
|||||||
mingw-w64-${{ matrix.config.mingw-arch }}-${{ matrix.compiler }}
|
mingw-w64-${{ matrix.config.mingw-arch }}-${{ matrix.compiler }}
|
||||||
mingw-w64-${{ matrix.config.mingw-arch }}-toolchain
|
mingw-w64-${{ matrix.config.mingw-arch }}-toolchain
|
||||||
|
|
||||||
- name: '🛠️ Win MSVC setup'
|
- name: '🛠️ Win MSVC 64 setup'
|
||||||
if: contains(matrix.config.name, 'MSVC')
|
if: contains(matrix.config.name, 'MSVC 64')
|
||||||
uses: microsoft/setup-msbuild@v1
|
uses: microsoft/setup-msbuild@v1
|
||||||
|
|
||||||
- name: '🚧 Win MSVC build'
|
- name: '🚧 Win MSVC 64 build'
|
||||||
if: contains(matrix.config.name, 'MSVC')
|
if: contains(matrix.config.name, 'MSVC 64')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
choco install ninja cmake
|
choco install ninja cmake
|
||||||
@ -109,6 +102,32 @@ jobs:
|
|||||||
ctest -C ${{ matrix.config.build_type }}
|
ctest -C ${{ matrix.config.build_type }}
|
||||||
mv Debug instdir
|
mv Debug instdir
|
||||||
|
|
||||||
|
- name: '🛠️ Win MSVC 32 setup'
|
||||||
|
if: contains(matrix.config.name, 'MSVC 32')
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
with:
|
||||||
|
arch: x86
|
||||||
|
|
||||||
|
- name: '🚧 Win MSVC 32 build'
|
||||||
|
if: contains(matrix.config.name, 'MSVC 32')
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
choco install ninja cmake
|
||||||
|
ninja --version
|
||||||
|
cmake --version
|
||||||
|
mkdir build
|
||||||
|
cmake \
|
||||||
|
-S . \
|
||||||
|
-B . \
|
||||||
|
-A "win32" \
|
||||||
|
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
||||||
|
-G "${{ matrix.config.generators }}" \
|
||||||
|
-DCMAKE_INSTALL_PREFIX:PATH=instdir
|
||||||
|
cmake --build . --config ${{ matrix.config.build_type }}
|
||||||
|
cmake --install . --strip --config ${{ matrix.config.build_type }}
|
||||||
|
ctest -C ${{ matrix.config.build_type }}
|
||||||
|
mv Debug instdir
|
||||||
|
|
||||||
- name: '🚧 Win MINGW build'
|
- name: '🚧 Win MINGW build'
|
||||||
if: contains(matrix.config.mingw, 'MINGW')
|
if: contains(matrix.config.mingw, 'MINGW')
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
@ -166,6 +185,17 @@ jobs:
|
|||||||
archiver: '7za a',
|
archiver: '7za a',
|
||||||
generators: 'Ninja'
|
generators: 'Ninja'
|
||||||
}
|
}
|
||||||
|
- {
|
||||||
|
os: macos-11,
|
||||||
|
arch: x86_64,
|
||||||
|
python-arch: x86_64,
|
||||||
|
python-ver: '3.8',
|
||||||
|
name: 'android cmake',
|
||||||
|
artifact: 'Android-x86_64.7z',
|
||||||
|
build_type: 'Debug',
|
||||||
|
archiver: '7za a',
|
||||||
|
generators: 'Ninja'
|
||||||
|
}
|
||||||
compiler: [ gcc ]
|
compiler: [ gcc ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -176,24 +206,56 @@ jobs:
|
|||||||
# python-version: ${{ matrix.config.python-ver }}
|
# python-version: ${{ matrix.config.python-ver }}
|
||||||
|
|
||||||
- name: '🚧 Mac build'
|
- name: '🚧 Mac build'
|
||||||
if: contains(matrix.config.os, 'macos')
|
if: contains(matrix.config.name, 'macos-x64')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install p7zip cmake ninja
|
brew install p7zip cmake ninja
|
||||||
ninja --version
|
ninja --version
|
||||||
cmake --version
|
cmake --version
|
||||||
mkdir build
|
mkdir build
|
||||||
mkdir instdir
|
mkdir instdir
|
||||||
cmake \
|
cmake \
|
||||||
-S . \
|
-S . \
|
||||||
-B . \
|
-B . \
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
||||||
-G "${{ matrix.config.generators }}" \
|
-G "${{ matrix.config.generators }}" \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=instdir
|
-DCMAKE_INSTALL_PREFIX:PATH=instdir
|
||||||
cmake --build . --config ${{ matrix.config.build_type }}
|
cmake --build . --config ${{ matrix.config.build_type }}
|
||||||
cmake --install . --strip
|
cmake --install . --strip
|
||||||
ctest -C ${{ matrix.config.build_type }}
|
ctest -C ${{ matrix.config.build_type }}
|
||||||
|
|
||||||
|
- name: '🚧 Android x86_64 build'
|
||||||
|
if: contains(matrix.config.name, 'android')
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
brew install p7zip cmake ninja
|
||||||
|
mkdir build
|
||||||
|
mkdir instdir
|
||||||
|
cmake . -DCMAKE_TOOLCHAIN_FILE="$ANDROID_HOME/ndk/21.4.7075529/build/cmake/android.toolchain.cmake" \
|
||||||
|
-DANDROID_PLATFORM=android-28 \
|
||||||
|
-DANDROID_NDK="$ANDROID_HOME/ndk/21.4.7075529" \
|
||||||
|
-DANDROID_ABI=${{ matrix.config.arch }} \
|
||||||
|
-DOLP_SDK_ENABLE_TESTING=NO \
|
||||||
|
-DOLP_SDK_BUILD_EXAMPLES=ON \
|
||||||
|
-S . \
|
||||||
|
-B . \
|
||||||
|
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
||||||
|
-G "${{ matrix.config.generators }}" \
|
||||||
|
-DCMAKE_INSTALL_PREFIX:PATH=instdir
|
||||||
|
cmake --build . --config ${{ matrix.config.build_type }}
|
||||||
|
cmake --install . --strip
|
||||||
|
|
||||||
|
- name: '🚧 Android x86_64 tests'
|
||||||
|
if: contains(matrix.config.name, 'android')
|
||||||
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
|
with:
|
||||||
|
api-level: 28
|
||||||
|
arch: ${{ matrix.config.arch }}
|
||||||
|
target: default
|
||||||
|
profile: Nexus 6
|
||||||
|
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -verbose -show-kernel
|
||||||
|
script: ctest -C ${{ matrix.config.build_type }}
|
||||||
|
|
||||||
- name: '📦 Pack artifact'
|
- name: '📦 Pack artifact'
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: instdir
|
working-directory: instdir
|
||||||
@ -330,4 +392,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: ./${{ matrix.config.artifact }}
|
path: ./${{ matrix.config.artifact }}
|
||||||
name: ${{ matrix.config.artifact }}
|
name: ${{ matrix.config.artifact }}
|
||||||
|
Reference in New Issue
Block a user