Skip to content

Commit

Permalink
add dummy jobs to speed up builds
Browse files Browse the repository at this point in the history
  • Loading branch information
luan committed Dec 28, 2023
1 parent 0e48f76 commit 1039162
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-docker-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Build - Docker (dummy)

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "src/**"
merge_group:

jobs:
build_docker_x86:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- run: echo "This is a dummy job to satisfy branch protection checks"

build_docker_arm:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- run: echo "This is a dummy job to satisfy branch protection checks"
32 changes: 32 additions & 0 deletions .github/workflows/build-ubuntu-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Build - Ubuntu (dummy)

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "src/**"
merge_group:

jobs:
job:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
name: ${{ matrix.os }}-${{ matrix.buildtype }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
buildtype: [linux-release, linux-debug]
include:
- os: ubuntu-20.04
triplet: x64-linux
- os: ubuntu-22.04
triplet: x64-linux

steps:
- run: echo "This is a dummy job to satisfy branch protection checks"
- name: Checkout repository
uses: actions/checkout@main
27 changes: 27 additions & 0 deletions .github/workflows/build-windows-solution-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Build - Windows - Solution (dummy)

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "src/**"
merge_group:

jobs:
job:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
name: ${{ matrix.os }}-${{ matrix.buildtype }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022]
buildtype: [Debug]
include:
- os: windows-2022
triplet: x64-windows
packages: >
sccache
steps:
- run: echo "This is a dummy job to satisfy branch protection checks"
13 changes: 13 additions & 0 deletions .github/workflows/clang-lint-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Clang-format (dummy)
on:
pull_request:
paths-ignore:
- "src/**"
merge_group:

jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "This is a dummy job to satisfy branch protection checks"
14 changes: 14 additions & 0 deletions .github/workflows/lua-format-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Lua-format (dumy)

on:
pull_request:
paths-ignore:
- "data*/**"
merge_group:

jobs:
lua-formatter:
runs-on: ubuntu-latest
steps:
- run: echo "This is a dummy job to satisfy branch protection checks"

0 comments on commit 1039162

Please sign in to comment.