Merge pull request #12 from yanhuangdata/feature/conv-error #13
Workflow file for this run
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: RELEASE | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
release: | |
strategy: | |
matrix: | |
target: | |
- x86_64-apple-darwin | |
- x86_64-unknown-linux-gnu | |
- aarch64-unknown-linux-gnu | |
include: | |
- target: x86_64-apple-darwin | |
os: macos-latest | |
target_rustflags: '' | |
- target: x86_64-unknown-linux-gnu | |
os: ubuntu-latest | |
target_rustflags: '' | |
- target: aarch64-unknown-linux-gnu | |
os: ubuntu-latest | |
target_rustflags: '--codegen linker=aarch64-linux-gnu-gcc' | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install AArch64 Toolchain | |
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc-aarch64-linux-gnu | |
- name: Install gandiva_rust_udf_build | |
run: cargo install gandiva_rust_udf_build | |
- name: Package | |
id: package | |
env: | |
TARGET: ${{ matrix.target }} | |
REF: ${{ github.ref }} | |
OS: ${{ matrix.os }} | |
TARGET_RUSTFLAGS: ${{ matrix.target_rustflags }} | |
run: ./ci/scripts/build.sh | |
shell: bash | |
- name: Publish Archive | |
uses: softprops/action-gh-release@v0.1.15 | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
with: | |
draft: false | |
files: ${{ steps.package.outputs.archive }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |