Skip to content

Commit

Permalink
CI: Update macos builder to 14 and tester to 12
Browse files Browse the repository at this point in the history
macOS 11 runners have been deprecated, the oldest image available
to test is macOS 12.
Also update the builder to macOS 14, which is now using arm64.
  • Loading branch information
Smjert committed Jun 30, 2024
1 parent ca14540 commit 9c9d212
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/hosted_runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ jobs:
matrix:
build_type: [Release, Debug]
architecture: [x86_64, arm64]
os: [macos-12]
os: [macos-14]

exclude:
- build_type: Debug
Expand Down Expand Up @@ -703,7 +703,7 @@ jobs:
shell: bash
id: xcode_selector
run: |
xcode_path="/Applications/Xcode_14.1.app/Contents/Developer"
xcode_path="/Applications/Xcode_14.3.1.app/Contents/Developer"
echo "PATH=${path}" >> $GITHUB_OUTPUT
sudo xcode-select -s "${xcode_path}"
Expand Down Expand Up @@ -758,7 +758,7 @@ jobs:
du -sh ${{ steps.build_paths.outputs.BINARY }}
- name: Run the tests
if: matrix.architecture == 'x86_64'
if: matrix.architecture == 'arm64'
working-directory: ${{ steps.build_paths.outputs.BINARY }}
run: |
ctest --build-nocmake -V
Expand Down Expand Up @@ -797,12 +797,12 @@ jobs:
name: macos_unsigned_release_package_data_${{ matrix.architecture }}
path: ${{ steps.packages.outputs.REL_UNSIGNED_RELEASE_PACKAGE_DATA_PATH }}

- name: Package the tests for the x86_64 macOS-11 worker
- name: Package the tests for the x86_64 macOS-12 worker
if: matrix.architecture == 'x86_64'
run: |
( cd workspace && ${{ steps.build_paths.outputs.SOURCE }}/tools/ci/scripts/macos/package_tests.sh build macos_tests_${{ matrix.build_type }} )
- name: Store the packaged tests for the x86_64 macOS-11 worker
- name: Store the packaged tests for the x86_64 macOS-12 worker
if: matrix.architecture == 'x86_64'
uses: actions/upload-artifact@v1
with:
Expand All @@ -818,13 +818,13 @@ jobs:
# This job takes the packaged tests (Release + Debug) from the Monterey
# builder and runs them on a new Big Sur instance
test_macos_bigsur:
# This job takes the packaged tests (Release + Debug) from the Sonoma
# builder and runs them on a new Monterey instance
test_macos_monterey:

needs: build_macos

runs-on: macos-11
runs-on: macos-12

steps:
- name: Clone the osquery repository
Expand Down Expand Up @@ -886,9 +886,9 @@ jobs:
# This job builds the universal macOS artifacts
build_universal_macos_artifacts:
needs: test_macos_bigsur
needs: test_macos_monterey

runs-on: macos-12
runs-on: macos-14

steps:
- name: Clone the osquery repository
Expand Down

0 comments on commit 9c9d212

Please sign in to comment.