File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build P4Python
2+
3+ env :
4+ codeline : " r21.1"
5+ docker : " ppiorunski/p4php7:python-27.35.36.37.38.39-manylinux2010_x86_64-github"
6+ mount : " ${{ github.workspace }}/..:/work"
7+ bindir : " ${{ github.workspace }}/../p4-bin/binlinux26x86_64"
8+ p4api : " p4api-glibc2.3-openssl1.1.1.tgz"
9+
10+ on :
11+ push :
12+ branches : [ master ]
13+ pull_request :
14+ branches : [ master ]
15+ workflow_dispatch :
16+
17+ jobs :
18+ build-linux :
19+ runs-on : ubuntu-latest
20+ steps :
21+
22+ - name : Checkout source code
23+ uses : actions/checkout@v2
24+
25+ - name : Login to docker hub
26+ uses : docker/login-action@v1
27+ with :
28+ username : ${{ secrets.DOCKERHUB_USERNAME }}
29+ password : ${{ secrets.DOCKERHUB_TOKEN }}
30+
31+ - name : Get p4api
32+ run : |
33+ mkdir -p ${{ p4apiDir }}
34+ dir ${{ bindir }}
35+ dir ..
36+ dir
37+ pwd
38+ cd .. && wget ftp://ftp.perforce.com/perforce/$codeline/bin.linux26x86_64/${{ p4api }} -O ${{ bindir }}/${{ p4api }}
39+
40+ - name : Get p4 and p4d binary
41+ run : |
42+ wget ftp://ftp.perforce.com/perforce/$codeline/bin.linux26x86_64/p4d -O ${{ bindir }}/p4d && chmod 775 ${{ bindir }}/p4d
43+ - name : Build P4Python
44+ run : |
45+ docker pull ${{ docker }}
46+ docker run \
47+ -v ${{ mount }} \
48+ ${{ docker }} /work/p4-python/linux_build/build-wheels.sh "27 36 37 38 39"
49+ dir ${{ bindir }}
50+
51+ - uses : actions/upload-artifact@v2
52+ with :
53+ name : non-production-p4python
54+ path : p4python
55+
You can’t perform that action at this time.
0 commit comments