| 1 |
name: Prepare release for VCPKG |
| 2 |
|
| 3 |
on: |
| 4 |
release: |
| 5 |
types: [published] |
| 6 |
workflow_dispatch: |
| 7 |
inputs: |
| 8 |
tag: |
| 9 |
description: 'Tag to package' |
| 10 |
required: true |
| 11 |
|
| 12 |
permissions: |
| 13 |
contents: read |
| 14 |
|
| 15 |
jobs: |
| 16 |
Collect-Vcpkg-Info: |
| 17 |
permissions: |
| 18 |
contents: write |
| 19 |
runs-on: ubuntu-latest |
| 20 |
steps: |
| 21 |
- name: Harden Runner |
| 22 |
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 |
| 23 |
with: |
| 24 |
egress-policy: audit |
| 25 |
|
| 26 |
- name: Setup PHP |
| 27 |
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc |
| 28 |
with: |
| 29 |
php-version: '8.1' |
| 30 |
|
| 31 |
- name: Checkout D++ |
| 32 |
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 |
| 33 |
with: |
| 34 |
submodules: recursive |
| 35 |
|
| 36 |
- name: Update vcpkg and install other dependencies |
| 37 |
run: sudo apt-get update && |
| 38 |
sudo apt-get install nasm linux-headers-$(uname -r) && |
| 39 |
cd /usr/local/share/vcpkg && |
| 40 |
sudo ./bootstrap-vcpkg.sh && |
| 41 |
sudo git stash && |
| 42 |
sudo git pull && |
| 43 |
sudo vcpkg update |
| 44 |
|
| 45 |
- name: Run vcpkg release builder |
| 46 |
run: git fetch -avt && |
| 47 |
cd buildtools && |
| 48 |
php make_vcpkg.php "${{ github.repository_owner }}" "${{ secrets.PERSONAL_ACCESS_TOKEN }}" "${{ inputs.tag }}" |