Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build P4Python

env:
codeline: "r21.1"
docker: "ppiorunski/p4php7:python-27.35.36.37.38.39-manylinux2010_x86_64-github"
mount: "${{ github.workspace }}/..:/work"
bindir: "${{ github.workspace }}/../p4-bin/bin.linux26x86_64"
p4api: "p4api-glibc2.3-openssl1.1.1.tgz"

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
pyver: [27, 36, 37, 38, 39]
steps:

- name: Checkout source code
uses: actions/checkout@v2

- name: Login to docker hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get p4api
run: |
mkdir -p $bindir
cd .. && wget ftp://ftp.perforce.com/perforce/$codeline/bin.linux26x86_64/$p4api -O $bindir/$p4api

- name: Get p4 and p4d binary
run: |
wget ftp://ftp.perforce.com/perforce/$codeline/bin.linux26x86_64/p4d -O $bindir/p4d && chmod 775 $bindir/p4d
- name: Build P4Python
run: |
docker pull $docker
chmod +x linux_build/build-wheels.sh
cp -rf ../p4python ../p4-python
docker run -v $mount $docker /work/p4-python/linux_build/build-wheels.sh ${{ matrix.pyver }}
cp ../p4-python/repair/p4python-*.whl ${{ github.workspace }}/p4python-cp${{ matrix.pyver }}-manylinux2010_x86_64.whl

- uses: actions/upload-artifact@v2
with:
name: non-production-p4python-wheel-cp${{ matrix.pyver }}
path: ${{ github.workspace }}/p4python-cp${{ matrix.pyver }}-manylinux2010_x86_64.whl
16 changes: 16 additions & 0 deletions Version
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# These values identify the release and patchlevel represented by these sources.

# RELEASE = 2010 2 main nightly ;
# 'year' is the year of the release
# 'Nth' is which release of the year (1 2 3)
# 'special' is 'main' for mainline builds and 'beta' for beta builds.

# PATCHLEVEL = 251229 ;
# Of the source.

# SUPPDATE = 2010 06 17 ;
# Of the build. The copyright date is derived from SUPPDATE.

RELEASE = 2020 1 GITHUB-PREP-TEST_ONLY ;
PATCHLEVEL = 0 ;
SUPPDATE = 0000 00 00 ;