Skip to content

Commit

Permalink
Updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Feb 12, 2023
1 parent b2f87dd commit 0b0b8ea
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: CI (Ant)
name: CI (Ant, PHP 7.3)

on: [push]

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
Expand All @@ -14,11 +15,6 @@ jobs:
php-version: '7.3'
extensions: imagick, swoole
coverage: xdebug
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/build.php74.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI (Ant, PHP 7.4)

on: [push]

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: imagick, swoole
coverage: xdebug
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "./build/logs/junit.xml"
6 changes: 1 addition & 5 deletions .github/workflows/build.php80.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push]

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
Expand All @@ -14,11 +15,6 @@ jobs:
php-version: '8.0'
extensions: imagick, swoole
coverage: xdebug
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/build.php81.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push]

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
Expand All @@ -14,11 +15,6 @@ jobs:
php-version: '8.1'
extensions: imagick, swoole
coverage: xdebug
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/build.php81.release.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: imagick, swoole
coverage: xdebug
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "./build/logs/junit.xml"
- name: Make Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
build/dist/doc.zip
build/dist/builddoc.zip

0 comments on commit 0b0b8ea

Please sign in to comment.