Skip to content

Commit

Permalink
Let CI use parallel builds
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 committed Feb 7, 2024
1 parent 9675f37 commit c0b6ef8
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-airgap-image-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
description: The airgap image bundle's cache key.
value: ${{ jobs.build.outputs.cache-key }}

env:
MAKEFLAGS: -j

jobs:
build:
name: "${{ inputs.target-os }}-${{ inputs.target-arch }}"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- CODE_OF_CONDUCT.md
- docs/**

env:
MAKEFLAGS: -j

jobs:
build:
name: Build docs
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-k0s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
required: true
description: The architecture to build k0s for.

env:
MAKEFLAGS: -j

jobs:
build:
name: ${{ inputs.target-os }}-${{ inputs.target-arch }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
schedule:
- cron: "0 23 * * *"

env:
MAKEFLAGS: -j

jobs:
check-network:
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ on:
- '.github/workflows/mkdocs-set-default-version.yml'
- 'mkdocs.yml'

env:
MAKEFLAGS: -j

jobs:
prepare:
name: Prepare
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ on:
- 'mkdocs.yml'
- '*.md'

env:
MAKEFLAGS: -j

jobs:
lint:
name: Lint
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ostests-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ env:
# This is hopefully somewhat physically close to where the hosted GitHub runners live.
# https://github.com/orgs/community/discussions/24969#discussioncomment-3246032
AWS_REGION: us-east-1
MAKEFLAGS: -j

jobs:
e2e-tests:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-docs-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
required: true

env:
MAKEFLAGS: -j
PYTHON_VERSION: 3.x
TARGET_VERSION: ${{ github.event.inputs.version }}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
types:
- published

env:
MAKEFLAGS: -j

jobs:
build:
name: Deploy docs
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- v* # Push events to matching v*, i.e. v1.0, v20.15.10

env:
MAKEFLAGS: -j

jobs:
release:
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sbom-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

env:
MAKEFLAGS: -j

jobs:
sbom-upload:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -eu

# Don't deal with recursive make stuff here!
unset -v MAKEFLAGS MAKELEVEL

from=
var=

Expand Down

0 comments on commit c0b6ef8

Please sign in to comment.