Skip to content

Commit

Permalink
Use php pecl/install action as suggested by TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
smoser committed Oct 30, 2024
1 parent c927d98 commit 21e4a06
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 96 deletions.
11 changes: 3 additions & 8 deletions php-8.1-pecl-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=http.so" > ${{targets.destdir}}/etc/php/conf.d/http.ini
- uses: pecl/install
with:
extension: "http"

- uses: strip

Expand Down
11 changes: 3 additions & 8 deletions php-8.1-pecl-pdosqlsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=pdo_sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/pdo_sqlsrv.ini
- uses: pecl/install
with:
extension: "pdo_sqlsrv"

- uses: strip

Expand Down
11 changes: 3 additions & 8 deletions php-8.1-pecl-raphf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=raphf.so" > ${{targets.destdir}}/etc/php/conf.d/raphf.ini
- uses: pecl/install
with:
extension: "raphf"

# PHP initialization is order dependent. So we will explicitly
# load this by prefixing the file with 10- so it runs before
Expand Down
11 changes: 3 additions & 8 deletions php-8.1-pecl-sqlsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/sqlsrv.ini
- uses: pecl/install
with:
extension: "sqlsrv"

- uses: strip

Expand Down
11 changes: 3 additions & 8 deletions php-8.2-pecl-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=http.so" > ${{targets.destdir}}/etc/php/conf.d/http.ini
- uses: pecl/install
with:
extension: "http"

- uses: strip

Expand Down
11 changes: 3 additions & 8 deletions php-8.2-pecl-pdosqlsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=pdo_sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/pdo_sqlsrv.ini
- uses: pecl/install
with:
extension: "pdo_sqlsrv"

- uses: strip

Expand Down
11 changes: 3 additions & 8 deletions php-8.2-pecl-raphf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=raphf.so" > ${{targets.destdir}}/etc/php/conf.d/raphf.ini
- uses: pecl/install
with:
extension: "raphf"

# PHP initialization is order dependent. So we will explicitly
# load this by prefixing the file with 10- so it runs before
Expand Down
11 changes: 3 additions & 8 deletions php-8.2-pecl-sqlsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/sqlsrv.ini
- uses: pecl/install
with:
extension: "sqlsrv"

- uses: strip

Expand Down
11 changes: 3 additions & 8 deletions php-8.3-pecl-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=http.so" > ${{targets.destdir}}/etc/php/conf.d/http.ini
- uses: pecl/install
with:
extension: "http"

- uses: strip

Expand Down
11 changes: 3 additions & 8 deletions php-8.3-pecl-pdosqlsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=pdo_sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/pdo_sqlsrv.ini
- uses: pecl/install
with:
extension: "pdo_sqlsrv"

- uses: strip

Expand Down
11 changes: 3 additions & 8 deletions php-8.3-pecl-raphf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=raphf.so" > ${{targets.destdir}}/etc/php/conf.d/raphf.ini
- uses: pecl/install
with:
extension: "raphf"

# PHP initialization is order dependent. So we will explicitly
# load this by prefixing the file with 10- so it runs before
Expand Down
11 changes: 3 additions & 8 deletions php-8.3-pecl-sqlsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ pipeline:

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/sqlsrv.ini
- uses: pecl/install
with:
extension: "sqlsrv"

- uses: strip

Expand Down

0 comments on commit 21e4a06

Please sign in to comment.