From 7a230da6b5903bcdbbe745ec366f6dd54aee54bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Tue, 10 Sep 2024 11:40:45 +0200 Subject: [PATCH] GH-12: Add test CI: macOS + CGO --- .github/workflows/test.yml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0d0efeb6..df6b71d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -137,8 +137,8 @@ jobs: fail-fast: false matrix: go: - - '1.21' - '1.22' + - '1.23' steps: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -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: 15 + 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