Skip to content

Commit

Permalink
v0.4.0: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcole1340 committed Sep 5, 2021
1 parent 356c1fd commit 5bf2458
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 36 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,33 @@ jobs:
docs:
name: Build and Deploy
runs-on: ubuntu-latest
strategy:
matrix:
rust-toolchain:
- nightly
php:
- '8.0'
llvm:
- '11.0'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: 8.0
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-toolchain }}
toolchain: nightly
override: true
- name: Setup LLVM & Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: ${{ matrix.llvm }}
directory: ${{ runner.temp }}/llvm-${{ matrix.llvm }}
version: 11.0
directory: ${{ runner.temp }}/llvm-11.0
- name: Install mdbook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: latest
- name: Build docs
env:
LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.llvm }}/lib
RUSTDOCFLAGS: --cfg docs
run: cargo doc --release
- name: Build guide
run: |
mdbook build guide
mv guide/book target/doc/guide
- name: Create index redirect
run: |
echo '<meta http-equiv=refresh content=0;url=/ext-php-rs/ext_php_rs>' > target/doc/index.html
run: mdbook build guide
- name: Publish docs
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: target/doc
FOLDER: guide/book
CLEAN: true
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ repository = "https://github.com/davidcole1340/ext-php-rs"
homepage = "https://github.com/davidcole1340/ext-php-rs"
license = "MIT OR Apache-2.0"
keywords = ["php", "ffi", "zend"]
version = "0.3.0"
version = "0.4.0"
authors = ["David Cole <[email protected]>"]
edition = "2018"
categories = ["api-bindings"]

[dependencies]
bitflags = "1.2.1"
ext-php-rs-derive = { version = "=0.3.0", path = "./ext-php-rs-derive" }
ext-php-rs-derive = { version = "=0.4.0", path = "./ext-php-rs-derive" }

[build-dependencies]
bindgen = { version = ">= 0.57.0, < 0.58.1" }
Expand All @@ -28,3 +28,6 @@ members = [
"ext-php-rs-derive",
"example/skel"
]

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docs"]
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,7 @@ The library guide can be read
[here](https://davidcole1340.github.io/ext-php-rs/guide).

The project is documented in-line, so viewing the `cargo` documentation is the
best resource at the moment.

We are currently unable to deploy our documentation to `docs.rs` due to the
crate requiring PHP 8.0, which is unavailable in the default Ubuntu
repositories. Documentation can be viewed
[here](https://davidcole1340.github.io/ext-php-rs/). It is generated from the
latest `master` branch. Documentation will be moved to `docs.rs` when Ubuntu
updates its repositories to PHP 8.0.
best resource at the moment. This can be viewed at [docs.rs].

## Requirements

Expand Down Expand Up @@ -132,3 +125,4 @@ at your option.

[LICENSE_APACHE]: https://github.com/davidcole1340/ext-php-rs/blob/master/LICENSE_APACHE
[LICENSE_MIT]: https://github.com/davidcole1340/ext-php-rs/blob/master/LICENSE_MIT
[docs.rs]: https://docs.rs/ext-php-rs
2 changes: 1 addition & 1 deletion ext-php-rs-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Derive macros for ext-php-rs."
repository = "https://github.com/davidcole1340/ext-php-rs"
homepage = "https://github.com/davidcole1340/ext-php-rs"
license = "MIT OR Apache-2.0"
version = "0.3.0"
version = "0.4.0"
authors = ["David Cole <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion guide/src/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ future. It's recommended to lock the version at the patch level.
## Documentation

- This guide!
- [Rust docs](https://davidcole1340.github.io/ext-php-rs)
- [Rust docs](https://docs.rs/ext-php-rs)

0 comments on commit 5bf2458

Please sign in to comment.