Skip to content

Commit eeaa129

Browse files
authored
Merge pull request #2 from ppiorunski/master
Adding github actions
2 parents 233d9e1 + 8ef3d69 commit eeaa129

2 files changed

Lines changed: 69 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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/bin.linux26x86_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+
strategy:
21+
matrix:
22+
pyver: [27, 36, 37, 38, 39]
23+
steps:
24+
25+
- name: Checkout source code
26+
uses: actions/checkout@v2
27+
28+
- name: Login to docker hub
29+
uses: docker/login-action@v1
30+
with:
31+
username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_TOKEN }}
33+
34+
- name: Get p4api
35+
run: |
36+
mkdir -p $bindir
37+
cd .. && wget ftp://ftp.perforce.com/perforce/$codeline/bin.linux26x86_64/$p4api -O $bindir/$p4api
38+
39+
- name: Get p4 and p4d binary
40+
run: |
41+
wget ftp://ftp.perforce.com/perforce/$codeline/bin.linux26x86_64/p4d -O $bindir/p4d && chmod 775 $bindir/p4d
42+
- name: Build P4Python
43+
run: |
44+
docker pull $docker
45+
chmod +x linux_build/build-wheels.sh
46+
cp -rf ../p4python ../p4-python
47+
docker run -v $mount $docker /work/p4-python/linux_build/build-wheels.sh ${{ matrix.pyver }}
48+
cp ../p4-python/repair/p4python-*.whl ${{ github.workspace }}/p4python-cp${{ matrix.pyver }}-manylinux2010_x86_64.whl
49+
50+
- uses: actions/upload-artifact@v2
51+
with:
52+
name: non-production-p4python-wheel-cp${{ matrix.pyver }}
53+
path: ${{ github.workspace }}/p4python-cp${{ matrix.pyver }}-manylinux2010_x86_64.whl

Version

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# These values identify the release and patchlevel represented by these sources.
2+
3+
# RELEASE = 2010 2 main nightly ;
4+
# 'year' is the year of the release
5+
# 'Nth' is which release of the year (1 2 3)
6+
# 'special' is 'main' for mainline builds and 'beta' for beta builds.
7+
8+
# PATCHLEVEL = 251229 ;
9+
# Of the source.
10+
11+
# SUPPDATE = 2010 06 17 ;
12+
# Of the build. The copyright date is derived from SUPPDATE.
13+
14+
RELEASE = 2020 1 GITHUB-PREP-TEST_ONLY ;
15+
PATCHLEVEL = 0 ;
16+
SUPPDATE = 0000 00 00 ;

0 commit comments

Comments
 (0)