Skip to content

Commit

Permalink
feat: update mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck committed Oct 17, 2023
1 parent 2b35b66 commit b12e585
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 170 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/ClientTests.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/MacOS.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: MacOS
on:
push:
paths-ignore:
- '**/README.md'
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 }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
macos:
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.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:
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'

- name: Setup Ninja
run: brew install ninja

- uses: actions/setup-python@v2
with:
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
- name: Build extension
shell: bash
run: |
make release
# Test extension (only on x86_64)
- name: Test Extension
if: ${{ matrix.osx_build_arch == 'x86_64'}}
shell: bash
run: |
make test
31 changes: 0 additions & 31 deletions .github/workflows/MainDistributionPipeline.yml

This file was deleted.

121 changes: 0 additions & 121 deletions .github/workflows/_extension_deploy.yml

This file was deleted.

0 comments on commit b12e585

Please sign in to comment.