Optimize udmpparser::UserDumpParser::GetMemBlock #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Builds | |
on: [push, pull_request] | |
jobs: | |
parser: | |
strategy: | |
fail-fast: false | |
matrix: | |
variant: | |
# Available runners: https://github.com/actions/runner-images | |
- {os: windows-2019, generator: msvc, arch: x64, config: RelWithDebInfo, } | |
- {os: windows-2019, generator: msvc, arch: win32, config: RelWithDebInfo, } | |
- {os: windows-2019, generator: msvc, arch: arm64, config: RelWithDebInfo, } | |
- {os: ubuntu-22.04, generator: gcc, arch: x64, config: RelWithDebInfo, } | |
- {os: ubuntu-22.04, generator: clang, arch: x64, config: RelWithDebInfo, } | |
- {os: ubuntu-24.04, generator: gcc, arch: x64, config: RelWithDebInfo, } | |
- {os: ubuntu-24.04, generator: clang, arch: x64, config: RelWithDebInfo, } | |
- {os: macos-13, generator: clang, arch: x64, config: Release, } | |
# - {os: macos-13-xlarge, generator: clang, arch: arm64, config: Release, } # Paying runner | |
- {os: macos-14, generator: clang, arch: arm64, config: Release, } | |
# - {os: macos-14-large, generator: clang, arch: x64, config: Release, } # Paying runner | |
runs-on: ${{ matrix.variant.os }} | |
name: parser / ${{ matrix.variant.os }} / ${{ matrix.variant.generator }} / ${{ matrix.variant.arch }} | |
env: | |
CMAKE_FLAGS: "-DBUILD_PARSER:BOOL=ON -DBUILD_PYTHON_BINDING:BOOL=OFF" | |
CMAKE_ARCH: "" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Environment Setup (Windows) | |
if: matrix.variant.os == 'windows-2019' | |
run: | | |
Import-Module .\.github\Invoke-VisualStudio.ps1 | |
Invoke-VisualStudio2022${{ matrix.variant.arch }} | |
echo "CMAKE_ARCH='-A ${{ matrix.variant.arch }}'" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
- name: Environment Setup (Linux) | |
if: matrix.variant.os == 'ubuntu-22.04' | |
run: | | |
sudo apt update | |
- name: Environment Setup (Linux/GCC) | |
if: matrix.variant.os == 'ubuntu-22.04' && matrix.variant.generator == 'gcc' | |
run: | | |
sudo apt install -y g++ | |
echo CC=gcc >> $GITHUB_ENV | |
echo CXX=g++ >> $GITHUB_ENV | |
- name: Environment Setup (Linux/CLang) | |
if: matrix.variant.os == 'ubuntu-22.04' && matrix.variant.generator == 'clang' | |
run: | | |
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" | |
echo CC=clang >> $GITHUB_ENV | |
echo CXX=clang++ >> $GITHUB_ENV | |
- name: Build | |
run: | | |
mkdir build | |
mkdir artifact | |
cmake -S ./src -B ./build ${{ env.CMAKE_ARCH }} ${{ env.CMAKE_FLAGS }} | |
cmake --build ./build --verbose --config ${{ matrix.variant.config }} | |
cmake --install ./build --config ${{ matrix.variant.config }} --prefix ./artifact | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: parser-${{ matrix.variant.os }}.${{ matrix.variant.generator }}-${{ matrix.variant.arch }}.${{ matrix.variant.config }}-${{ github.sha }} | |
path: artifact/ | |
bindings: | |
strategy: | |
fail-fast: false | |
matrix: | |
variant: | |
# Available runners: https://github.com/actions/runner-images | |
- {os: windows-2019, config: RelWithDebInfo } | |
- {os: ubuntu-22.04, config: RelWithDebInfo } | |
# most up to date free intel based osx? | |
- {os: macos-13, config: Release } | |
runs-on: ${{ matrix.variant.os }} | |
name: bindings / ${{ matrix.variant.os }} | |
env: | |
CMAKE_FLAGS: "-DBUILD_PARSER:BOOL=OFF -DBUILD_PYTHON_BINDING:BOOL=ON" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build / test wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_BEFORE_TEST: pip install -U -r {project}/src/python/tests/requirements.txt | |
with: | |
package-dir: ./src/python | |
- name: Upload wheel | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-${{ matrix.variant.os }} | |
path: ./wheelhouse/*.whl | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: python-${{ matrix.variant.os }}.${{ matrix.variant.generator }}-${{ matrix.variant.arch }}.${{ matrix.variant.config }} | |
path: artifact/ | |
merge: | |
runs-on: ubuntu-latest | |
needs: bindings | |
steps: | |
- name: Merge Artifacts | |
uses: actions/upload-artifact/merge@v4 | |
with: | |
name: wheels | |
pattern: wheels-* |