diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 649d72f..e054581 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,21 +1,19 @@ 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 @@ -23,52 +21,55 @@ jobs: 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 diff --git a/bin/list-all b/bin/list-all index 935241c..5e8b4b0 100755 --- a/bin/list-all +++ b/bin/list-all @@ -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 )