Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Merge pull request #2 from aszenz/dependabot/github_actions/actions/c… #7

Merge pull request #2 from aszenz/dependabot/github_actions/actions/c…

Merge pull request #2 from aszenz/dependabot/github_actions/actions/c… #7

Workflow file for this run

name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup PHP-dev
uses: shivammathur/setup-php@v2
with:
php-version: "8.3-dev"
- name: Setup rust
run: |
rustup toolchain install stable --profile minimal
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build extension
run: |
cd php-typ
cargo build --release
- name: Test extension
run: |
php -d extension=./php-typ/target/release/libtyp_php.so ./test.php