Skip to content

Commit

Permalink
feat: nocache option
Browse files Browse the repository at this point in the history
Useful for checking reproducibility
  • Loading branch information
dsseng committed Jan 18, 2025
1 parent 761237b commit 14431c3
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 20 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/c.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: c

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
no_cache:
description: 'Disable cache'
required: true
type: boolean

jobs:
build-push:
Expand Down Expand Up @@ -75,34 +81,34 @@ jobs:
python3.11 ./src/fetch.py filesystem
- name: Build filesystem
run: |
make filesystem PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make filesystem PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
- name: Fetch binutils
run: |
python3.11 ./src/fetch.py binutils
- name: Build binutils
run: |
make binutils PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make binutils PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
- name: Fetch busybox
run: |
python3.11 ./src/fetch.py busybox
- name: Build busybox
run: |
make busybox PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make busybox PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
- name: Fetch gcc
run: |
python3.11 ./src/fetch.py gcc
- name: Build gcc
run: |
make gcc PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make gcc PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
- name: Fetch make
run: |
python3.11 ./src/fetch.py make
- name: Build make
run: |
make make PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make make PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
- name: Fetch musl
run: |
python3.11 ./src/fetch.py musl
- name: Build musl
run: |
make musl PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make musl PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
16 changes: 11 additions & 5 deletions .github/workflows/next.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: next

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
no_cache:
description: 'Disable cache'
required: true
type: boolean

jobs:
build-push:
Expand Down Expand Up @@ -86,22 +92,22 @@ jobs:
python3.11 ./src/fetch.py diffutils
- name: Build diffutils
run: |
make diffutils PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make diffutils PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
- name: Fetch go
run: |
python3.11 ./src/fetch.py go
- name: Build go
run: |
make go PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make go PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
- name: Fetch perl
run: |
python3.11 ./src/fetch.py perl
- name: Build perl
run: |
make perl PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make perl PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
- name: Fetch texinfo
run: |
python3.11 ./src/fetch.py texinfo
- name: Build texinfo
run: |
make texinfo PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make texinfo PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
10 changes: 8 additions & 2 deletions .github/workflows/stage0.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: stage0

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
no_cache:
description: 'Disable cache'
required: true
type: boolean

jobs:
build-push:
Expand Down Expand Up @@ -72,4 +78,4 @@ jobs:
python3.11 ./src/fetch.py stage0
- name: Build stage0
run: |
make stage0 PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/386
make stage0 PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/386
10 changes: 8 additions & 2 deletions .github/workflows/stage1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: stage1

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
no_cache:
description: 'Disable cache'
required: true
type: boolean

jobs:
build-push:
Expand Down Expand Up @@ -69,4 +75,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build stage1
run: |
make stage1 PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/386
make stage1 PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/386
10 changes: 8 additions & 2 deletions .github/workflows/stage2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: stage2

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
no_cache:
description: 'Disable cache'
required: true
type: boolean

jobs:
build-push:
Expand Down Expand Up @@ -72,4 +78,4 @@ jobs:
python3.11 ./src/fetch.py stage2
- name: Build stage2
run: |
make stage2 PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make stage2 PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64
10 changes: 8 additions & 2 deletions .github/workflows/stage3.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: stage3

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
no_cache:
description: 'Disable cache'
required: true
type: boolean

jobs:
build-push:
Expand Down Expand Up @@ -72,4 +78,4 @@ jobs:
python3.11 ./src/fetch.py stage3
- name: Build stage3
run: |
make stage3 PROGRESS=plain BUILDER="docker buildx" PLATFORM=linux/amd64,linux/arm64
make stage3 PROGRESS=plain BUILDER="docker buildx" ${{ inputs.no_cache && 'NOCACHE=1' || '' }} PLATFORM=linux/amd64,linux/arm64

0 comments on commit 14431c3

Please sign in to comment.