Skip to content

feat(java/python/rust/go/c++): align nullable meta for xlang struct fields serialization #693

feat(java/python/rust/go/c++): align nullable meta for xlang struct fields serialization

feat(java/python/rust/go/c++): align nullable meta for xlang struct fields serialization #693

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Build Native PR Wheels
on:
pull_request:
paths: [ci/**, python/**, .github/workflows/**]
push:
branches: [main]
paths: [ci/**, python/**, .github/workflows/**]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
python-version: ['3.13']
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Cache Bazel binary
uses: actions/cache@v4
with:
path: |
~/bin/bazel
~/.local/bin/bazel
C:\bazel\bazel.exe
key: bazel-binary-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bazelversion') }}
- name: Install bazel
if: runner.os != 'Windows'
run: ./ci/run_ci.sh install_bazel
- name: Install bazel (Windows)
if: runner.os == 'Windows'
run: ./ci/run_ci.sh install_bazel_windows
shell: bash
- name: Build wheel
run: ./ci/deploy.sh build_pyfory
shell: bash
- name: Install and verify wheel
shell: bash
run: |
python -m pip install --upgrade pip
pip install dist/*.whl
python -c "import pyfory; print(pyfory.__version__)"
- name: Upload wheels as artifacts
uses: actions/upload-artifact@v4
with:
name: pyfory-wheels-native-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*.whl