Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 34 additions & 33 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,74 +1,75 @@
name: Main workflow

on:
pull_request:
push:
schedule:
- cron: 0 0 * * 5
branches:
- master
pull_request:

jobs:
plugin-test-docker:
strategy:
matrix:
container:
- ubuntu:latest
- ghcr.io/rendyananta/asdf-php-ubuntu:latest
php-version:
- 7.4.14
- 8.0.0
- latest
- 8.3.0

env:
DEBIAN_FRONTEND: noninteractive

container:
image: ${{ matrix.container }}

runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- name: Install packages
run: apt-get update && apt-get install -y autoconf bison build-essential curl gettext git libgd-dev libcurl4-openssl-dev libedit-dev libicu-dev libjpeg-dev libmysqlclient-dev libonig-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libzip-dev openssl pkg-config re2c zlib1g-dev
# - name: Install packages
# run: apt-get update && apt-get install -y autoconf bison build-essential curl gettext git libgd-dev libcurl4-openssl-dev libedit-dev libicu-dev libjpeg-dev libmysqlclient-dev libonig-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libzip-dev libgmp-dev libsodium-dev openssl pkg-config re2c zlib1g-dev libxslt1-dev

- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v1
uses: asdf-vm/actions/plugin-test@v3
with:
command: php --version
version: ${{ matrix.php-version }}

plugin-test-vm:
strategy:
matrix:
os:
- macos-latest
php-version:
- 7.4.14
- 8.0.0
- latest
# plugin-test-vm:
# strategy:
# matrix:
# os:
# - macos-latest
# php-version:
# - 7.4.14
# - 8.0.0
# - latest

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

steps:
- name: Install packages
run: brew install autoconf automake bison freetype gd gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip openssl@1.1 pkg-config re2c zlib
# steps:
# - name: Install packages
# run: brew install autoconf automake bison freetype gd gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip openssl@1.1 pkg-config re2c zlib

- name: Install conflicting packages
run: brew install openssl@3
# - name: Install conflicting packages
# run: brew install openssl@3

- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v1
with:
command: php --version
version: ${{ matrix.php-version }}
# - name: asdf_plugin_test
# uses: asdf-vm/actions/plugin-test@v1
# with:
# command: php --version
# version: ${{ matrix.php-version }}

format:
runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Update ubuntu repo
run: sudo apt update -y

- name: Install shfmt
run: brew install shfmt
run: sudo apt install -y shfmt

- name: Run shfmt
run: make fmt-check
10 changes: 3 additions & 7 deletions bin/list-all
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@

set -eo pipefail

sort_versions() {
sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z\1/; s/$/.z/; G; s/\n/ /' |
LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | awk '{print $2}'
}

versions=$(
git ls-remote --tags https://github.com/php/php-src.git |
grep 'php-' |
awk '!/({})/ {print $2}' |
grep -E -v '\^\{\}' |
cut -f2 |
sed 's/refs\/tags\/php-//' |
grep -E -v -i "rc|alpha|beta|dev|pre" |
sort_versions |
sort -V |
xargs
)

Expand Down