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

GH-12: Add test CI: macOS + CGO #118

Merged
merged 2 commits into from
Sep 10, 2024
Merged
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
40 changes: 38 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ jobs:
macos:
name: AMD64 macOS 12 Go ${{ matrix.go }}
runs-on: macos-12
timeout-minutes: 15
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
go:
- '1.21'
- '1.22'
- '1.23'
Comment on lines -140 to +141
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -159,6 +159,42 @@ jobs:
- name: Test
run: |
$(brew --prefix)/bin/bash ci/scripts/test.sh $(pwd)
macos-cgo:
name: AMD64 macOS 12 Go ${{ matrix.go }} - CGO
runs-on: macos-12
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
go:
- '1.22'
- '1.23'
env:
ARROW_GO_TESTCGO: "1"
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: recursive
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go }}
cache: true
cache-dependency-path: go.sum
- name: Brew Install Arrow and pkg-config
shell: bash
run: brew install apache-arrow pkg-config bash
- name: Add To pkg config path
shell: bash
run: |
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
- name: Build
run: |
$(brew --prefix)/bin/bash ci/scripts/build.sh $(pwd)
- name: Test
run: |
$(brew --prefix)/bin/bash ci/scripts/test.sh $(pwd)
windows:
name: AMD64 Windows 2019 Go ${{ matrix.go }}
runs-on: windows-2019
Expand Down
Loading