ZiProto/.github/workflows/net.intellivoid.ziproto.ppm...

37 lines
1.1 KiB
YAML

name: PPM Compile ZiProto
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Add repoistory for PHP 8.0
run: sudo add-apt-repository ppa:ondrej/php
- name: Install PHP 8.0
run: sudo apt-get install php8.0 php8.0-curl php8.0-mbstring php8.0-tokenizer php8.0-fileinfo
- uses: actions/checkout@v2
with:
repository: intellivoid/ppm
ref: "production"
token: ${{ secrets.PPM_ACCESS_TOKEN }}
- name: Install PPM
run: sudo ./install
- name: Configuring PPM
run: sudo ppm --github-add-pat --alias="system" --token="${{ secrets.PPM_ACCESS_TOKEN }}"
- uses: actions/checkout@master
- name: Make build directory
run: mkdir build
- name: Prepare ZiProto
run: ppm --generate-package="src/ZiProto"
- name: Compile ZiProto
run: ppm --no-intro --verbose --compile="src/ZiProto" --directory="build"
- name: Install ZiProto
run: sudo -H ppm --no-prompt --fix-conflict --verbose --install="build/net.intellivoid.ziproto.ppm"