Skip to content

Commit

Permalink
ci: use native GitHub Actions M1 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Mar 19, 2024
1 parent aba748f commit 2c16086
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 17 deletions.
38 changes: 27 additions & 11 deletions .github/workflows/native-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest"]
os: ["macos-latest", "macos-14", "ubuntu-latest"]
include:
- os: macos-latest
goarch: x64
- os: macos-14
goarch: arm64
- os: ubuntu-latest
goarch: x64
env:
# Required for macOS
# https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
Expand Down Expand Up @@ -110,15 +117,15 @@ jobs:
export ADBC_BUILD_TESTS=OFF
export ADBC_USE_ASAN=OFF
export ADBC_USE_UBSAN=OFF
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/x64/bin:$PATH
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/${{ matrix.goarch }}/bin:$PATH
export ADBC_CMAKE_ARGS="-DCMAKE_UNITY_BUILD=ON"
./ci/scripts/cpp_build.sh "$(pwd)" "$(pwd)/build" "$HOME/local"
- name: Go Build
shell: bash -l {0}
env:
CGO_ENABLED: "1"
run: |
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/x64/bin:$PATH
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/${{ matrix.goarch }}/bin:$PATH
./ci/scripts/go_build.sh "$(pwd)" "$(pwd)/build" "$HOME/local"
- uses: actions/upload-artifact@v3
Expand All @@ -136,7 +143,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest"]
os: ["macos-latest", "macos-14", "ubuntu-latest"]
env:
# Required for macOS
# https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
Expand Down Expand Up @@ -241,6 +248,8 @@ jobs:
- drivers-build-conda
strategy:
matrix:
# N.B. no macos-14 here since conda-forge does not package
# arrow-c-glib for M1
os: ["macos-latest", "ubuntu-latest"]
env:
# Required for macOS
Expand Down Expand Up @@ -304,7 +313,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
os: ["macos-latest", "macos-14", "ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -346,7 +355,14 @@ jobs:
- drivers-build-conda
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest"]
os: ["macos-latest", "macos-14", "ubuntu-latest"]
include:
- os: macos-latest
goarch: x64
- os: macos-14
goarch: arm64
- os: ubuntu-latest
goarch: x64
env:
CGO_ENABLED: "1"
steps:
Expand Down Expand Up @@ -389,7 +405,7 @@ jobs:
cache-dependency-path: go/adbc/go.sum
- name: Install staticcheck
shell: bash -l {0}
if: ${{ !contains('macos-latest', matrix.os) }}
if: ${{ !contains('macos', matrix.os) }}
run: go install honnef.co/go/tools/cmd/staticcheck@v0.3.3

- uses: actions/download-artifact@v3
Expand All @@ -400,10 +416,10 @@ jobs:
- name: Go Build
shell: bash -l {0}
run: |
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/x64/bin:$PATH
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/${{ matrix.goarch }}/bin:$PATH
./ci/scripts/go_build.sh "$(pwd)" "$(pwd)/build" "$HOME/local"
- name: Run Staticcheck
if: ${{ !contains('macos-latest', matrix.os) }}
if: ${{ !contains('macos', matrix.os) }}
shell: bash -l {0}
run: |
pushd go/adbc
Expand All @@ -414,7 +430,7 @@ jobs:
env:
SNOWFLAKE_URI: ${{ secrets.SNOWFLAKE_URI }}
run: |
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/x64/bin:$PATH
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/${{ matrix.goarch }}/bin:$PATH
./ci/scripts/go_test.sh "$(pwd)" "$(pwd)/build" "$HOME/local"
# ------------------------------------------------------------
Expand All @@ -427,7 +443,7 @@ jobs:
- drivers-build-conda
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest"]
os: ["macos-latest", "macos-14", "ubuntu-latest"]
python: ["3.9", "3.11"]
env:
# Required for macOS
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -627,13 +627,18 @@ jobs:
python-macos:
name: "Python ${{ matrix.arch }} macOS"
runs-on: macos-latest
runs-on: ${{ matrix.os }}
needs:
- source
strategy:
fail-fast: false
matrix:
arch: ["amd64", "arm64v8"]
os: ["macos-latest", "macos-14"]
include:
- os: macos-latest
arch: amd64
- os: macos-14
arch: arm64v8
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
PYTHON: "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10"
Expand Down Expand Up @@ -686,11 +691,17 @@ jobs:
cache: true
cache-dependency-path: adbc/go/adbc/go.sum

- name: Install Python
- name: Install Python (AMD64 only)
if: matrix.arch == 'amd64'
run: |
pushd adbc
sudo ci/scripts/install_python.sh macos 3.8
sudo ci/scripts/install_python.sh macos 3.9
popd
- name: Install Python (AMD64 only)
run: |
pushd adbc
sudo ci/scripts/install_python.sh macos 3.10
sudo ci/scripts/install_python.sh macos 3.11
sudo ci/scripts/install_python.sh macos 3.12
Expand Down Expand Up @@ -741,7 +752,6 @@ jobs:
deactivate
- name: Test wheel 3.10
if: matrix.arch == 'amd64'
run: |
pushd adbc
Expand All @@ -752,7 +762,6 @@ jobs:
deactivate
- name: Test wheel 3.11
if: matrix.arch == 'amd64'
run: |
pushd adbc
Expand All @@ -763,7 +772,6 @@ jobs:
deactivate
- name: Test wheel 3.12
if: matrix.arch == 'amd64'
run: |
pushd adbc
Expand Down

0 comments on commit 2c16086

Please sign in to comment.