Skip to content

Add mac ci actions #72115

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

Merged
merged 70 commits into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
69a9b5d
Add mac ci actions
tianshuo78520a Apr 8, 2025
0abc822
test=document_fix
tianshuo78520a Apr 8, 2025
fc6603f
test=document_fix
tianshuo78520a Apr 8, 2025
f28b737
test=document_fix
tianshuo78520a Apr 8, 2025
0f3ebd0
test=document_fix
tianshuo78520a Apr 8, 2025
ae01c09
test=document_fix
tianshuo78520a Apr 8, 2025
d6f428b
test=document_fix
tianshuo78520a Apr 8, 2025
a12851b
fix env;test=document_fix
tianshuo78520a Apr 8, 2025
d29ddc3
fix workdir;test=document_fix
tianshuo78520a Apr 8, 2025
1830512
test=document_fix
tianshuo78520a Apr 8, 2025
aadcdd2
test=document_fix
tianshuo78520a Apr 8, 2025
51ba1aa
test=document_fix
tianshuo78520a Apr 8, 2025
54bc59c
test=document_fix
tianshuo78520a Apr 8, 2025
a969301
test=document_fix
tianshuo78520a Apr 9, 2025
6e3ed8e
test=document_fix
tianshuo78520a Apr 9, 2025
036c678
Update
tianshuo78520a Apr 9, 2025
38d422a
test=document_fix
tianshuo78520a Apr 9, 2025
e475422
test=document_fix
tianshuo78520a Apr 9, 2025
10adac2
test=document_fix
tianshuo78520a Apr 9, 2025
7357bc7
test=document_fix
tianshuo78520a Apr 15, 2025
34304c3
test=document_fix
tianshuo78520a Apr 15, 2025
9024ab6
test=document_fix
tianshuo78520a Apr 15, 2025
320e8e3
test=document_fix
tianshuo78520a Apr 15, 2025
eea154c
test=document_fix
tianshuo78520a Apr 15, 2025
1f04432
test=document_fix
tianshuo78520a Apr 16, 2025
0f0d70c
test=document_fix
tianshuo78520a Apr 16, 2025
56fc9a7
test=document_fix
tianshuo78520a Apr 16, 2025
3d2ea48
test=document_fix
tianshuo78520a Apr 17, 2025
79a2e22
test=document_fix
tianshuo78520a Apr 17, 2025
7cfb730
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
tianshuo78520a Apr 17, 2025
75e4bed
test=document_fix
tianshuo78520a Apr 17, 2025
bc7049d
test=document_fix
tianshuo78520a Apr 17, 2025
0c37298
test=document_fix
tianshuo78520a Apr 17, 2025
adf2f35
test=document_fix
tianshuo78520a Apr 21, 2025
618caf7
test=document_fix
tianshuo78520a Apr 21, 2025
11b0156
test=document_fix
tianshuo78520a Apr 21, 2025
9b9dd94
test=document_fix
tianshuo78520a Apr 21, 2025
0b1c914
test=document_fix
tianshuo78520a Apr 22, 2025
13556f6
test=document_fix
tianshuo78520a Apr 22, 2025
4230ef6
test=document_fix
tianshuo78520a Apr 22, 2025
7c29638
test=document_fix
tianshuo78520a Apr 24, 2025
3da4805
test=document_fix
tianshuo78520a Apr 24, 2025
b86040a
test=document_fix
tianshuo78520a Apr 25, 2025
77d6058
test=document_fix
tianshuo78520a Apr 25, 2025
18a7e9b
fix mac test
tianshuo78520a May 12, 2025
8c43fc5
fix test
tianshuo78520a May 12, 2025
50ea6d5
Fix mac
tianshuo78520a May 13, 2025
24f0a57
fix test and clean tmp;test=document_fix
tianshuo78520a May 13, 2025
62f5699
test=document_fix
tianshuo78520a May 13, 2025
385791f
test
tianshuo78520a May 13, 2025
68cf2a5
fix test
tianshuo78520a May 15, 2025
4b89d20
fix test
tianshuo78520a May 15, 2025
d15c802
test=document_fix
tianshuo78520a May 15, 2025
61fe33c
test=document_fix
tianshuo78520a May 15, 2025
6657d11
test=document_fix
tianshuo78520a May 15, 2025
0f9deb5
test rerun;test=document_fix
tianshuo78520a May 16, 2025
0a642e1
fix
tianshuo78520a Jun 4, 2025
fc18e38
fix test
tianshuo78520a Jun 5, 2025
68b3b4b
test=document_fix
tianshuo78520a Jun 6, 2025
6793556
test=document_fix
tianshuo78520a Jun 6, 2025
9389f82
test=document_fix
tianshuo78520a Jun 6, 2025
975fbba
fix
tianshuo78520a Jun 6, 2025
63cfd0f
fix
tianshuo78520a Jun 9, 2025
d1794d1
fix
tianshuo78520a Jun 9, 2025
3ee1503
fix
tianshuo78520a Jun 9, 2025
d94c530
fix
tianshuo78520a Jun 9, 2025
87687a9
fix
tianshuo78520a Jun 9, 2025
ca944c9
fix
tianshuo78520a Jun 9, 2025
b587fd4
fix
tianshuo78520a Jun 9, 2025
4dfb85b
test;metax_ci
tianshuo78520a Jun 9, 2025
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
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
uses: ./.github/workflows/_SOT.yml
needs: clone

mac:
name: Mac-CPU
uses: ./.github/workflows/_Mac.yml
needs: clone

xpu:
name: Linux-XPU
uses: ./.github/workflows/_Linux-XPU.yml
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/_Mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Mac-CPU

on:
workflow_call:

env:
PR_ID: ${{ github.event.pull_request.number }}
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
BRANCH: ${{ github.event.pull_request.base.ref }}
work_dir: ${{ github.workspace }}
PADDLE_ROOT: "${{ github.workspace }}/Paddle"
MACOSX_DEPLOYMENT_TARGET: 10.11
PADDLE_DEV_NAME: "paddlepaddle/paddle:dev"
PADDLE_VERSION: 0.0.0
COVERALLS_UPLOAD: "OFF"
WITH_DEB: "OFF"
RUN_TEST: "OFF"
WITH_DISTRIBUTE: "ON"
WITH_FLUID_ONLY: "ON"
WITH_TESTING: "ON"
WITH_INFERENCE_API_TEST: "OFF"
INSTALL_PREFIX: "/Users/paddle/CI_install_path"
PYTHON_ABI: "cp310-cp310"
PY_VERSION: "3.10"
WITH_AVX: "OFF"
WITH_ARM: "ON"
PROC_RUN: 8
WITH_CACHE: "ON"
NIGHTLY_MODE: "OFF"
GIT_PR_ID: ${{ github.event.pull_request.number }}
PRECISION_TEST: "OFF"
CI_SKIP_CPP_TEST: "OFF"
WITH_ONNXRUNTIME: "OFF"
WITH_TENSORRT: "OFF"
GENERATOR: "Ninja"
WITH_SHARED_PHI: "ON"

defaults:
run:
shell: bash

jobs:
build-and-test:
name: Build and test
runs-on:
group: Mac-CI

steps:
- name: Check environment
run: |
set -x
cd ${work_dir}
[ -d "${work_dir}/Paddle" ] && rm -rf ${work_dir}/Paddle
[ -f "${work_dir}/Paddle.tar.gz" ] && rm -rf ${work_dir}/Paddle.tar.gz
wget -q --no-proxy https://paddle-github-action.bj.bcebos.com/PR/Paddle/${PR_ID}/${COMMIT_ID}/Paddle.tar.gz --no-check-certificate
tar xf Paddle.tar.gz && cd Paddle

git config --global user.name "PaddleCI"
git config --global user.email "paddle_ci@example.com"
git remote add upstream https://github.com/PaddlePaddle/Paddle.git
git checkout $BRANCH
git pull upstream $BRANCH
git fetch upstream $BRANCH
git checkout test
git merge --no-edit $BRANCH

- name: Check bypass
id: check-bypass
uses: ./Paddle/.github/actions/check-bypass
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
workflow-name: mac

- name: Build with mac python3.10
if: steps.check-bypass.outputs.can-skip != 'true'
run: |
set -x
cd ${work_dir}/Paddle
source ~/.zshrc
bash -x ${work_dir}/Paddle/ci/run_setup.sh bdist_wheel ${parallel_number:-""}
EXCODE=$?
exit $EXCODE

- name: Test with mac python3.10
if: steps.check-bypass.outputs.can-skip != 'true'
run: |
set -ex
cd ${work_dir}/Paddle
pip3.10 install -r ${work_dir}/Paddle/python/unittest_py/requirements.txt
pip3.10 install -U ${work_dir}/Paddle/dist/*whl
bash -x ${work_dir}/Paddle/ci/run_mac_test.sh ${PYTHON_ABI:-""} ${PROC_RUN:-""}
EXCODE=$?
exit $EXCODE
Loading
Loading