Skip to content

Commit

Permalink
feat: Base CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
henrique-borba committed Jul 25, 2023
1 parent f263bf9 commit 62fae56
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
pull_request:
push:
branches:
- "master"
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
name: PHP 8.2
# The type of runner that the job will run on
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Compile PHP
run: |
apt-get install -y wget
wget -O php.tar.gz https://www.php.net/distributions/php-8.2.0.tar.gz
tar -xf php.tar.gz --strip-components=1
rm php.tar.gz
./configure \
--prefix=/usr/local/php \
--with-config-file-path=/usr/local/php/etc \
--enable-debug \
--enable-mbstring \
--with-curl \
--with-openssl \
--with-libxml \
--with-pdo-mysql \
--with-pdo-sqlite \
--with-sqlite3 \
--with-zlib \
--with-bz2 \
--with-jpeg \
--with-webp \
--with-xpm \
--with-freetype \
--with-zip \
&& make -j$(nproc) \
&& make install
- name: Install extension
run: |
cd ${{ github.workspace }}
${{ github.workspace }}/php/bin/phpize
./configure
make install
echo "extension=ndarray.so" > ${{ github.workspace }}/php/etc/conf.d/ndarray.ini
- name: Run Tests
run: |
cd ${{ github.workspace }}
make test

0 comments on commit 62fae56

Please sign in to comment.