mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-14 18:15:26 +01:00
11e0998bc4
## Small Fixes due to PHP8.2 upgrade: - Internal PHP `ZendHashmap` changed the way that we access to the bucket ([commit](90b7bde615 (diff-dca4782c62f10b418ea7193e4641e688ffd7a9c97869f2b1a3a96e28da5653aaL371)
)) - Internal PHP `ArrayIterator` doesn't support parent `get_iterator` ([commit](15bbf6f337 (diff-bc002b59b592b4d44c13d898f9dc3ca60b1b1c8505a51a2a3557dfde51dfeb61L273)
))
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
name: Deploy documentation
|
|
on:
|
|
workflow_dispatch:
|
|
# runs every monday at midnight
|
|
schedule:
|
|
- cron: "0 0 * * 1"
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
docs:
|
|
name: Build and Deploy
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: ["ubuntu-latest"]
|
|
php: ["8.2"]
|
|
clang: ["14"]
|
|
mdbook: ["latest"]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
- name: Cache LLVM and Clang
|
|
id: cache-llvm
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ${{ runner.temp }}/llvm-${{ matrix.clang }}
|
|
key: ${{ matrix.os }}-llvm-${{ matrix.clang }}
|
|
- name: Setup LLVM & Clang
|
|
uses: KyleMayes/install-llvm-action@v1
|
|
with:
|
|
version: ${{ matrix.clang }}
|
|
directory: ${{ runner.temp }}/llvm-${{ matrix.clang }}
|
|
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
|
|
- name: Install mdbook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: ${{ matrix.mdbook }}
|
|
- name: Build guide
|
|
run: mdbook build guide
|
|
- name: Publish docs
|
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
BRANCH: gh-pages
|
|
FOLDER: guide/book
|
|
CLEAN: true
|