Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: running on mac #17

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 0 additions & 152 deletions .github/workflows/Linux.yml

This file was deleted.

65 changes: 49 additions & 16 deletions .github/workflows/MacOS.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: MacOS
on: [workflow_dispatch]
on:
pull_request:
paths-ignore:
- '**/README.md'
repository_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }}
Expand All @@ -11,45 +15,74 @@ defaults:

jobs:
macos:
name: MacOS Release (Universal)
name: MacOS Release (${{ matrix.osx_build_arch }})
runs-on: macos-latest
strategy:
matrix:
# Add commits/tags to build against other DuckDB versions
duckdb_version: ["v0.8.1"]
duckdb_version: ['v0.9.1']
vcpkg_version: ['2023.04.15']
vcpkg_triplet: ['x64-osx', 'arm64-osx']
include:
- vcpkg_triplet: 'x64-osx'
osx_build_arch: 'x86_64'
duckdb_arch: 'osx_amd64'
- vcpkg_triplet: 'arm64-osx'
osx_build_arch: 'arm64'
duckdb_arch: 'osx_arm64'

env:
OSX_BUILD_UNIVERSAL: 0
GEN: ninja
VCPKG_TARGET_TRIPLET: ${{ matrix.vcpkg_triplet }}
OSX_BUILD_ARCH: ${{ matrix.osx_build_arch }}
GEN: Ninja
VCPKG_TOOLCHAIN_PATH: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: "true"
submodules: 'true'

- name: Install Ninja
run: brew install ninja
- name: Setup Ninja and clang15
run: |
# use brew to install
brew install ninja llvm@15

# set clang15 as default
sudo ln -sf /usr/local/opt/llvm@15/bin/clang /usr/local/bin/clang

# echo clang version
clang --version

- uses: actions/setup-python@v2
with:
python-version: "3.7"
python-version: '3.7'

- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: 501db0f17ef6df184fcdbfbe0f87cde2313b6ab1

- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ runner.os }}-${{ matrix.osx_build_arch }}-${{ github.job }}

- name: Checkout DuckDB to version
if: ${{ matrix.duckdb_version != '<submodule_version>'}}
run: |
cd duckdb
git checkout ${{ matrix.duckdb_version }}

# Build extension
# Build extension
- name: Build extension
shell: bash
run: |
make release
make test

- name: Upload extension
uses: actions/upload-artifact@v2
with:
name: duckdb-extension
path: build/release/extension/exon/exon.duckdb_extension
# Test extension (only on x86_64)
# - name: Test Extension
# if: ${{ matrix.osx_build_arch == 'x86_64'}}
# shell: bash
# run: |
# make test
56 changes: 0 additions & 56 deletions .github/workflows/TestInsalls.yml

This file was deleted.

Loading
Loading