add cpu gpu xpu onednn #421
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clone | |
on: | |
pull_request_target: | |
branches: [ "develop" ] | |
permissions: | |
contents: read | |
jobs: | |
Clone: | |
# Don't run on forked repos. | |
if: github.repository_owner == 'PaddlePaddle' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone paddle | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Merge paddle | |
run: | | |
git fetch origin pull/${{ github.event.pull_request.number }}/merge | |
git checkout -qf FETCH_HEAD | |
git checkout -b test | |
- name: Cache bos client | |
id: cache_bos_client | |
uses: actions/cache@v4 | |
with: | |
path: | | |
/home/runner/work/Paddle/bos_upload.py | |
~/.cache/pip | |
key: bos_client_pip | |
- name: Download bos client | |
env: | |
WORK: "/home/runner/work/Paddle" | |
if: steps.cache_bos_client.outputs.cache-hit != 'true' | |
run: | | |
cd $WORK | |
wget -q --no-proxy -O bos_upload.py https://paddle-docker-tar.cdn.bcebos.com/bos_upload.py --no-check-certificate | |
- name: Push paddle-action.tar.gz to bos | |
env: | |
WORK: "/home/runner/work/Paddle" | |
AK: ${{ secrets.AK }} | |
SK: ${{ secrets.SK }} | |
PR_ID: ${{ github.event.pull_request.number }} | |
COMMIT_ID: ${{ github.event.pull_request.head.sha }} | |
run: | | |
cd $WORK | |
tar -zcf Paddle-action.tar.gz Paddle | |
python -m pip install bce-python-sdk==0.8.74 | |
python bos_upload.py Paddle-action.tar.gz xly-devops/PR/Paddle/${PR_ID}/${COMMIT_ID} |