Skip to content

Commit

Permalink
Merge pull request #7 from Skillshare/bugfix/ci
Browse files Browse the repository at this point in the history
Start Github Actions
  • Loading branch information
ahawkins authored Aug 25, 2023
2 parents f6d24ec + 85d45c5 commit 1013a72
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 103 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Test

on:
pull_request:
push:
branches:
- master
schedule:
# Every Friday at 00:00
- cron: 0 0 * * 5

jobs:
plugin-test-macos:
strategy:
matrix:
os:
- macos-13
php-version:
- 8.0.30
- 8.1.22

runs-on: ${{ matrix.os }}

steps:
- name: Install brews
run: >-
brew install
autoconf
automake
bison
freetype
gd
gettext
icu4c
krb5
libedit
libiconv
libjpeg
libpng
libxml2
libzip
[email protected]
pcre
pkg-config
re2c
zlib
- name: Install conflicts
run: brew install openssl@3

- name: Test install
uses: asdf-vm/actions/plugin-test@v2
with:
command: php --version
version: ${{ matrix.php-version }}
79 changes: 0 additions & 79 deletions .github/workflows/workflow.yml

This file was deleted.

29 changes: 5 additions & 24 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ os_based_configure_options() {
local webp_path=$(homebrew_package_path webp)
local zlib_path=$(homebrew_package_path zlib)
local pcre_path=$(homebrew_package_path pcre)
local postgres_path=$(homebrew_package_path postgres)
local postgres_path=$(homebrew_package_path libpq)

# optional
# if these packages exist they are included in the php compilation
Expand Down Expand Up @@ -331,31 +331,12 @@ os_based_configure_options() {
else
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libiconv"
fi
else
local jpeg_path=$(locate libjpeg.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1)
local libpng_path=$(locate libpng.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1)
configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext"

if [ "$jpeg_path" = "" ]; then
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING jpeg"
else
configure_options="$configure_options --with-jpeg-dir=$jpeg_path --with-jpeg"
fi

if [ "$libpng_path" = "" ]; then
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libpng"
else
configure_options="$configure_options --with-png-dir=$libpng_path --with-png"
fi

if [ "${PHP_WITHOUT_PDO_PGSQL:-no}" != "no" ]; then
configure_options="$configure_options"
else
configure_options="$configure_options --with-pdo-pgsql"
fi
echo $configure_options
else
echo "Unsupported Operating System: ${operation_system}" 1>&2
return 1
fi

echo $configure_options
}

download_source() {
Expand Down

0 comments on commit 1013a72

Please sign in to comment.