Merge pull request #12189 from gitccl/issue_12181 #1
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: Julia | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
push: | |
branches: | |
- '**' | |
- '!main' | |
- '!feature' | |
paths-ignore: | |
- '**.md' | |
- 'examples/**' | |
- 'test/**' | |
- 'tools/**' | |
- '!tools/juliapkg/**' | |
- '.github/patches/duckdb-wasm/**' | |
- '.github/workflows/**' | |
- '!.github/workflows/Julia.yml' | |
pull_request: | |
types: [opened, reopened, ready_for_review] | |
paths-ignore: | |
- '**.md' | |
- 'examples/**' | |
- 'test/**' | |
- 'tools/**' | |
- '!tools/juliapkg/**' | |
- '.github/patches/duckdb-wasm/**' | |
- '.github/workflows/**' | |
- '!.github/workflows/Julia.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
format_check: | |
name: Julia Format Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: 1.7 | |
arch: x64 | |
- name: Format Check | |
shell: bash | |
run: | | |
cd tools/juliapkg | |
julia -e "import Pkg; Pkg.add(\"JuliaFormatter\")" | |
./format_check.sh | |
main_julia: | |
name: Julia ${{ matrix.version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.6' | |
- '1.7' | |
- '1' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
isRelease: | |
- ${{ github.ref == 'refs/heads/main' }} | |
exclude: | |
- isRelease: false | |
version: '1.6' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- name: Setup Ccache | |
uses: hendrikmuhs/ccache-action@main | |
with: | |
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.version }} | |
save: ${{ github.ref == 'refs/heads/main' || github.repository != 'duckdb/duckdb' }} | |
- name: Build DuckDB | |
shell: bash | |
run: | | |
BUILD_TPCH=1 BUILD_ICU=1 BUILD_JEMALLOC=1 make | |
- name: Run Tests | |
shell: bash | |
run: | | |
export JULIA_DUCKDB_LIBRARY="`pwd`/build/release/src/libduckdb.so" | |
export JULIA_NUM_THREADS=2 | |
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6" | |
ls $JULIA_DUCKDB_LIBRARY | |
cd tools/juliapkg | |
julia --project -e "import Pkg; Pkg.test()" |