Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/actions/build-ci-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ inputs:
default: null
required: true
type: string
push:
default: false
required: true
type: boolean

runs:
using: composite
Expand Down Expand Up @@ -79,15 +83,18 @@ runs:
outputs: type=image,name=${{ inputs.image }},push-by-digest=true,name-canonical=true,push=true
sbom: true
provenance: mode=max
push: ${{ inputs.push }}

- name: Export digest
if: ${{ inputs.push }}
shell: bash
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"

- name: Upload digest
if: ${{ inputs.push }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ inputs.title }}-${{ env.PLATFORM_PAIR }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ env:

jobs:
build:
if: ${{ github.repository == 'libfn/functional' }}
runs-on:
group: ${{ matrix.platform == 'linux/arm64' && 'runners-arm64' || 'runners-intel' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -36,8 +39,6 @@ jobs:
platform:
- linux/amd64
- linux/arm64
runs-on:
group: ${{ matrix.platform == 'linux/arm64' && 'runners-arm64' || 'runners-intel' }}

steps:
- name: Prepare
Expand All @@ -64,8 +65,10 @@ jobs:
CLANG_RELEASE=${{ env.RELEASE }}
context: "ci/build/${{ env.COMPILER }}"
title: "build-${{ env.COMPILER}}-${{ env.RELEASE }}"
push: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}

merge:
if: ${{ github.repository == 'libfn/functional' && github.ref_type == 'branch' && github.ref_name == 'main' }}
runs-on:
group: runners-intel
needs:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ env:

jobs:
build:
if: ${{ github.repository == 'libfn/functional' }}
runs-on:
group: ${{ matrix.platform == 'linux/arm64' && 'runners-arm64' || 'runners-intel' }}
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
runs-on:
group: ${{ matrix.platform == 'linux/arm64' && 'runners-arm64' || 'runners-intel' }}

steps:
- uses: actions/checkout@v4
Expand All @@ -47,8 +48,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
context: "ci/docs"
title: "docs"
push: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}

merge:
if: ${{ github.repository == 'libfn/functional' && github.ref_type == 'branch' && github.ref_name == 'main' }}
runs-on:
group: runners-intel
needs:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ env:

jobs:
build:
if: ${{ github.repository == 'libfn/functional' }}
runs-on:
group: ${{ matrix.platform == 'linux/arm64' && 'runners-arm64' || 'runners-intel' }}
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
runs-on:
group: ${{ matrix.platform == 'linux/arm64' && 'runners-arm64' || 'runners-intel' }}

steps:
- uses: actions/checkout@v4
Expand All @@ -47,8 +48,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
context: "ci/pre-commit"
title: "pre-commit"
push: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}

merge:
if: ${{ github.repository == 'libfn/functional' && github.ref_type == 'branch' && github.ref_name == 'main' }}
runs-on:
group: runners-intel
needs:
Expand Down