Skip to content

Commit

Permalink
[CI] clone paddle (PaddlePaddle#70415)
Browse files Browse the repository at this point in the history
* Add clone pipeline in action

* env var

* add push event

add push event

* Update PR-CI-Clone.yml

* branch name

* modify workflow name

* 1

* 2

* 3

* all

* fix modify branch name

* fix tar

* pip install protocol

* 5

* pip

* PATH

* PATH

* Update PR-CI-Clone.yml

* Update PR-CI-Clone.yml

* 2

* 12.24_1

* 12.24_2

* 12.24_3

* 12.24_4

* 12.24_5

* 12.24_6

* 24.24_7

* 24.24_8

* 24.24_9

* 24.24_10

* 12.24_11

* 12.24_12

* 12.24_13

* 24_1

* Update PR-CI-Clone.yml

* Update PR-CI-Clone.yml

* Update PR-CI-Clone.yml

* f

* n_1

* n_2

* n_3

* n_4

* n_5

* n_7

* n_8

* n_9

* n_10

* n_11

* text=document_fix

* test=document_fix

* test=document_fix

* test=document_fix

* test=document_fix

---------

Co-authored-by: risemeup1 <62429225+risemeup1@users.noreply.github.com>
  • Loading branch information
swgu98 and risemeup1 authored Dec 25, 2024
1 parent cb9c6ab commit 32374ed
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/PR-CI-Clone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Clone

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

jobs:
Clone:
runs-on: ubuntu-latest
steps:
- name: Clone paddle
uses: actions/checkout@v4
with:
submodules: 'recursive'

- 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: |
git checkout -b test
cd $WORK
tar -zcf Paddle-action.tar.gz Paddle
python -m pip install bce-python-sdk==0.8.74
python3 bos_upload.py Paddle-action.tar.gz xly-devops/PR/Paddle/${PR_ID}/${COMMIT_ID}

0 comments on commit 32374ed

Please # to comment.