Skip to content

Commit

Permalink
[ci] automatic formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
d12frosted committed Nov 27, 2020
1 parent 71a0f7d commit 966ae0e
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 115 deletions.
47 changes: 23 additions & 24 deletions .github/workflows/emacs-26.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,46 @@ on:
branches:
- master
paths:
- 'Formula/emacs-plus@26.rb'
- 'patches/emacs-26/**'
- 'Library/**'
- '.github/workflows/emacs-26.yml'
- "Formula/emacs-plus@26.rb"
- "patches/emacs-26/**"
- "Library/**"
- ".github/workflows/emacs-26.yml"
pull_request:
paths:
- 'Formula/emacs-plus@26.rb'
- 'patches/emacs-26/**'
- 'Library/**'
- '.github/workflows/emacs-26.yml'
- "Formula/emacs-plus@26.rb"
- "patches/emacs-26/**"
- "Library/**"
- ".github/workflows/emacs-26.yml"
schedule:
- cron: '0 */12 * * *'
- cron: "0 */12 * * *"

jobs:
build:

runs-on: macos-latest
strategy:
matrix:
build_opts:
- ''
- '--build-from-source'
- ""
- "--build-from-source"

env:
HOMEBREW_GITHUB_REF: ${{ github.head_ref || github.ref }}
HOMEBREW_GITHUB_REPOSITORY: ${{ github.repository }}
HOMEBREW_GITHUB_ACTOR: ${{ github.actor }}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Build emacs-plus@26 ${{ matrix.build_opts }}
run: brew install emacs-plus@26.rb ${{ matrix.build_opts }}
working-directory: Formula
- name: Build emacs-plus@26 ${{ matrix.build_opts }}
run: brew install emacs-plus@26.rb ${{ matrix.build_opts }}
working-directory: Formula

- name: Test installation
if: contains(matrix.build_opts, '--HEAD') == false
run: brew test emacs-plus@26.rb
working-directory: Formula
- name: Test installation
if: contains(matrix.build_opts, '--HEAD') == false
run: brew test emacs-plus@26.rb
working-directory: Formula

- name: Test installation (--HEAD)
if: contains(matrix.build_opts, '--HEAD')
run: brew test emacs-plus@26.rb --HEAD
working-directory: Formula
- name: Test installation (--HEAD)
if: contains(matrix.build_opts, '--HEAD')
run: brew test emacs-plus@26.rb --HEAD
working-directory: Formula
55 changes: 27 additions & 28 deletions .github/workflows/emacs-27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,51 @@ on:
branches:
- master
paths:
- 'Formula/emacs-plus@27.rb'
- 'patches/emacs-27/**'
- 'Library/**'
- '.github/workflows/emacs-27.yml'
- "Formula/emacs-plus@27.rb"
- "patches/emacs-27/**"
- "Library/**"
- ".github/workflows/emacs-27.yml"
pull_request:
paths:
- 'Formula/emacs-plus@27.rb'
- 'patches/emacs-27/**'
- 'Library/**'
- '.github/workflows/emacs-27.yml'
- "Formula/emacs-plus@27.rb"
- "patches/emacs-27/**"
- "Library/**"
- ".github/workflows/emacs-27.yml"
schedule:
- cron: '0 */4 * * *'
- cron: "0 */4 * * *"

jobs:
build:

runs-on: macos-latest
strategy:
fail-fast: false
matrix:
build_opts:
- ''
- '--with-xwidgets'
- '--with-no-titlebar'
- '--HEAD'
- '--HEAD --with-xwidgets'
- '--HEAD --with-no-titlebar'
- ""
- "--with-xwidgets"
- "--with-no-titlebar"
- "--HEAD"
- "--HEAD --with-xwidgets"
- "--HEAD --with-no-titlebar"

env:
HOMEBREW_GITHUB_REF: ${{ github.head_ref || github.ref }}
HOMEBREW_GITHUB_REPOSITORY: ${{ github.repository }}
HOMEBREW_GITHUB_ACTOR: ${{ github.actor }}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Build emacs-plus@27 ${{ matrix.build_opts }}
run: brew install emacs-plus@27.rb ${{ matrix.build_opts }}
working-directory: Formula
- name: Build emacs-plus@27 ${{ matrix.build_opts }}
run: brew install emacs-plus@27.rb ${{ matrix.build_opts }}
working-directory: Formula

- name: Test installation
if: contains(matrix.build_opts, '--HEAD') == false
run: brew test emacs-plus@27.rb
working-directory: Formula
- name: Test installation
if: contains(matrix.build_opts, '--HEAD') == false
run: brew test emacs-plus@27.rb
working-directory: Formula

- name: Test installation (--HEAD)
if: contains(matrix.build_opts, '--HEAD')
run: brew test emacs-plus@27.rb --HEAD
working-directory: Formula
- name: Test installation (--HEAD)
if: contains(matrix.build_opts, '--HEAD')
run: brew test emacs-plus@27.rb --HEAD
working-directory: Formula
49 changes: 24 additions & 25 deletions .github/workflows/emacs-28.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,48 @@ on:
branches:
- master
paths:
- 'Formula/emacs-plus@28.rb'
- 'patches/emacs-28/**'
- 'Library/**'
- '.github/workflows/emacs-28.yml'
- "Formula/emacs-plus@28.rb"
- "patches/emacs-28/**"
- "Library/**"
- ".github/workflows/emacs-28.yml"
pull_request:
paths:
- 'Formula/emacs-plus@28.rb'
- 'patches/emacs-28/**'
- 'Library/**'
- '.github/workflows/emacs-28.yml'
- "Formula/emacs-plus@28.rb"
- "patches/emacs-28/**"
- "Library/**"
- ".github/workflows/emacs-28.yml"
schedule:
- cron: '0 */4 * * *'
- cron: "0 */4 * * *"

jobs:
build:

runs-on: macos-latest
strategy:
fail-fast: false
matrix:
build_opts:
- ''
- '--with-xwidgets'
- '--with-no-titlebar'
- ""
- "--with-xwidgets"
- "--with-no-titlebar"

env:
HOMEBREW_GITHUB_REF: ${{ github.head_ref || github.ref }}
HOMEBREW_GITHUB_REPOSITORY: ${{ github.repository }}
HOMEBREW_GITHUB_ACTOR: ${{ github.actor }}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Build emacs-plus@28 ${{ matrix.build_opts }}
run: brew install emacs-plus@28.rb ${{ matrix.build_opts }}
working-directory: Formula
- name: Build emacs-plus@28 ${{ matrix.build_opts }}
run: brew install emacs-plus@28.rb ${{ matrix.build_opts }}
working-directory: Formula

- name: Test installation
if: contains(matrix.build_opts, '--HEAD') == false
run: brew test emacs-plus@28.rb
working-directory: Formula
- name: Test installation
if: contains(matrix.build_opts, '--HEAD') == false
run: brew test emacs-plus@28.rb
working-directory: Formula

- name: Test installation (--HEAD)
if: contains(matrix.build_opts, '--HEAD')
run: brew test emacs-plus@28.rb --HEAD
working-directory: Formula
- name: Test installation (--HEAD)
if: contains(matrix.build_opts, '--HEAD')
run: brew test emacs-plus@28.rb --HEAD
working-directory: Formula
47 changes: 23 additions & 24 deletions .github/workflows/emacs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,43 @@ on:
branches:
- master
paths:
- 'Aliases/emacs-plus'
- '.github/workflows/emacs.yml'
- "Aliases/emacs-plus"
- ".github/workflows/emacs.yml"
pull_request:
paths:
- 'Aliases/emacs-plus'
- '.github/workflows/emacs.yml'
- "Aliases/emacs-plus"
- ".github/workflows/emacs.yml"
schedule:
- cron: '0 */12 * * *'
- cron: "0 */12 * * *"

jobs:
build:

runs-on: macos-latest
strategy:
matrix:
build_opts:
- ''
- '--build-from-source'
- ""
- "--build-from-source"

env:
HOMEBREW_GITHUB_REF: ${{ github.head_ref || github.ref }}
HOMEBREW_GITHUB_REPOSITORY: ${{ github.repository }}
HOMEBREW_GITHUB_ACTOR: ${{ github.actor }}

steps:
- uses: actions/checkout@v1

- name: Build emacs-plus ${{ matrix.build_opts }}
uses: nick-invision/retry@v1
with:
timeout_minutes: 300
max_attempts: 2
command: brew install Aliases/$(readlink Aliases/emacs-plus) ${{ matrix.build_opts }}

- name: Test installation
if: contains(matrix.build_opts, '--HEAD') == false
run: brew test Aliases/$(readlink Aliases/emacs-plus)

- name: Test installation (--HEAD)
if: contains(matrix.build_opts, '--HEAD')
run: brew test Aliases/$(readlink Aliases/emacs-plus) --HEAD
- uses: actions/checkout@v1

- name: Build emacs-plus ${{ matrix.build_opts }}
uses: nick-invision/retry@v1
with:
timeout_minutes: 300
max_attempts: 2
command: brew install Aliases/$(readlink Aliases/emacs-plus) ${{ matrix.build_opts }}

- name: Test installation
if: contains(matrix.build_opts, '--HEAD') == false
run: brew test Aliases/$(readlink Aliases/emacs-plus)

- name: Test installation (--HEAD)
if: contains(matrix.build_opts, '--HEAD')
run: brew test Aliases/$(readlink Aliases/emacs-plus) --HEAD
27 changes: 13 additions & 14 deletions .github/workflows/online.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,28 @@ on:
branches:
- master
paths:
- 'Formula/**'
- 'patches/**'
- 'Library/**'
- '.github/workflows/online.yml'
- "Formula/**"
- "patches/**"
- "Library/**"
- ".github/workflows/online.yml"
pull_request:
paths:
- '.github/workflows/online.yml'
- ".github/workflows/online.yml"
schedule:
- cron: '0 */12 * * *'
- cron: "0 */12 * * *"

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Tap emacs-plus
run: brew tap d12frosted/emacs-plus
- name: Tap emacs-plus
run: brew tap d12frosted/emacs-plus

- name: Build emacs-plus
run: brew install emacs-plus
- name: Build emacs-plus
run: brew install emacs-plus

- name: Test installation
run: brew test emacs-plus
- name: Test installation
run: brew test emacs-plus

0 comments on commit 966ae0e

Please sign in to comment.