Skip to content

Commit

Permalink
Move job to common workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezz committed Jan 25, 2024
1 parent 3c9de44 commit 520561b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/build-deps-macos.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/build-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,43 @@ jobs:
- name: Publish image
if: github.event_name == 'push' && steps.changed-files.outputs.builders_any_changed == 'true'
run: docker push ghcr.io/datadog/agent-int-builder:${{ matrix.job.image }}

build-deps-macos:
name: Target macOS
runs-on: macos-12
steps:
- name: Set up environment
run: |
# We remove everything that comes pre-installed via brew to avoid depending or shipping stuff that
# comes in the runner through brew to better control what might get shipped in the wheels via `delocate`
brew remove --force --ignore-dependencies $(brew list --formula)
brew install coreutils
- name: Set up Python
env:
# Despite the name, this is built for the macOS 11 SDK on arm64 and 10.9+ on intel
PYTHON3_DOWNLOAD_URL: "https://www.python.org/ftp/python/3.11.5/python-3.11.5-macos11.pkg"
PYTHON2_DOWNLOAD_URL: "https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg"
run: |
curl "$PYTHON3_DOWNLOAD_URL" -o python3.pkg
sudo installer -pkg python3.pkg -target /
curl "$PYTHON2_DOWNLOAD_URL" -o python2.pkg
sudo installer -pkg python2.pkg -target /
- name: Checkout code
uses: actions/checkout@v4

- name: Install management dependencies
run: ${DD_PYTHON3} -m pip install -r .builders/deps/host_dependencies.txt

- name: Run the build
env:
DD_PYTHON3: "/Library/Frameworks/Python.framework/Versions/3.11/bin/python3"
DD_PYTHON2: "/Library/Frameworks/Python.framework/Versions/2.7/bin/python"
# This sets the minimum mac os version compatible for all built artifacts
MACOSX_DEPLOYMENT_TARGET: "10.12"
run: |
mkdir builder_root
${DD_PYTHON3} .builders/build.py --builder-root builder_root --python 3 out_py3
${DD_PYTHON3} .builders/build.py --builder-root builder_root --skip-setup --python 2 out_py2

0 comments on commit 520561b

Please sign in to comment.