From ac82175c2fef6ffd00cea00b6b143d4fe2ffd123 Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Fri, 28 Oct 2022 23:48:47 +0300 Subject: [PATCH] CI & CD: Nightly builds from source + badge --- .github/workflows/nightly-src-build.yml | 14 ++++++++++++++ .github/workflows/test-src-build-linux.yml | 3 ++- .github/workflows/test-src-build-macos.yml | 3 ++- .github/workflows/test-src-build-windows.yml | 3 ++- README.md | 2 +- 5 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/nightly-src-build.yml diff --git a/.github/workflows/nightly-src-build.yml b/.github/workflows/nightly-src-build.yml new file mode 100644 index 00000000..67dde30f --- /dev/null +++ b/.github/workflows/nightly-src-build.yml @@ -0,0 +1,14 @@ +name: Nightly build(source) + +on: + workflow_dispatch: + schedule: + - cron: '0 0 */2 * *' + +jobs: + src-build-linux: + uses: ./.github/workflows/test-src-build-linux.yml + src-build-macos: + uses: ./.github/workflows/test-src-build-macos.yml + src-build-windows: + uses: ./.github/workflows/test-src-build-windows.yml diff --git a/.github/workflows/test-src-build-linux.yml b/.github/workflows/test-src-build-linux.yml index 65accc0e..7606d9f7 100644 --- a/.github/workflows/test-src-build-linux.yml +++ b/.github/workflows/test-src-build-linux.yml @@ -2,6 +2,7 @@ name: Build from source(Linux) on: workflow_dispatch: + workflow_call: pull_request: branches: [master] types: [opened, reopened, edited] @@ -23,7 +24,7 @@ on: - 'pyproject.toml' concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: src_linux-${{ github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/test-src-build-macos.yml b/.github/workflows/test-src-build-macos.yml index 0412d30e..ee59a2ce 100644 --- a/.github/workflows/test-src-build-macos.yml +++ b/.github/workflows/test-src-build-macos.yml @@ -2,6 +2,7 @@ name: Build from source(macOS) on: workflow_dispatch: + workflow_call: pull_request: branches: [master] types: [opened, reopened, edited] @@ -21,7 +22,7 @@ on: - 'pyproject.toml' concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: src_macos-${{ github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/test-src-build-windows.yml b/.github/workflows/test-src-build-windows.yml index c819593e..017d3c8f 100644 --- a/.github/workflows/test-src-build-windows.yml +++ b/.github/workflows/test-src-build-windows.yml @@ -2,6 +2,7 @@ name: Build from source(Windows) on: workflow_dispatch: + workflow_call: pull_request: branches: [master] types: [opened, reopened, edited] @@ -21,7 +22,7 @@ on: - 'pyproject.toml' concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: src_windows-${{ github.ref }} cancel-in-progress: true jobs: diff --git a/README.md b/README.md index 664a358d..2d4453e6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # pillow-heif [![Analysis & Coverage](https://github.com/bigcat88/pillow_heif/actions/workflows/analysis-coverage.yml/badge.svg)](https://github.com/bigcat88/pillow_heif/actions/workflows/analysis-coverage.yml) -[![Build & Publish](https://github.com/bigcat88/pillow_heif/actions/workflows/publish-pypi.yml/badge.svg)](https://github.com/bigcat88/pillow_heif/actions/workflows/publish-pypi.yml) +[![Nightly build](https://github.com/bigcat88/pillow_heif/actions/workflows/nightly-src-build.yml/badge.svg)](https://github.com/andrey18106/pillow_heif/actions/workflows/nightly-src-build.yml) [![Wheels test](https://github.com/bigcat88/pillow_heif/actions/workflows/test-wheels.yml/badge.svg)](https://github.com/bigcat88/pillow_heif/actions/workflows/test-wheels.yml) [![docs](https://readthedocs.org/projects/pillow-heif/badge/?version=latest)](https://pillow-heif.readthedocs.io/en/latest/?badge=latest) [![codecov](https://codecov.io/gh/bigcat88/pillow_heif/branch/master/graph/badge.svg?token=JY64F2OL6V)](https://codecov.io/gh/bigcat88/pillow_heif)