Skip to content

Commit

Permalink
attempted to make checksumming reusable part 6
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Nov 15, 2024
1 parent 3ae3a02 commit 5b8be3f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 11 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/generate-checksums.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,40 @@ on:
workflow_call:
inputs:
artifact-name:
default:
description: The artifact name to download for checksumming
required: false
type: string
default:
artifact-pattern:
default:
description: The artifact pattern to download for checksumming
required: false
type: string
default:
depth:
default: "1"
description: The depth to search for files to checksum
required: false
type: string
default: "1"
flatten:
default: false
description: Whether to flatten all downloaded artifacts
required: false
type: boolean
default: false
output:
default: sha256sum.txt
description: The name of the checksum file
required: false
type: string
default: sha256sum.txt
show:
default: true
description: Whether to print the checksums in the action
required: false
type: boolean
default: true
upload-name:
default: checksums-${{ github.sha }}
description: The artifact name to upload
required: false
type: string

jobs:
checksum:
Expand Down Expand Up @@ -58,3 +69,10 @@ jobs:
--depth=${{ inputs.depth }} \
--output=${{ inputs.output }} \
${{ inputs.show == true && '--show' || ''}}
- name: Upload checksums
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.upload-name }}
path: ${{ inputs.output }}
if-no-files-found: error
retention-days: 1
10 changes: 5 additions & 5 deletions .github/workflows/pkg-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@ on:
workflow_call:
inputs:
arch:
default: x64
description: The architecture to build for eg x64 | arm64
required: true
type: string
default: x64
node-version:
default: "20"
description: The node version to build for eg 16 | 18 | 20
required: true
type: string
default: "20"
os:
default: linux
description: The os to build for eg linux | macos | win
required: true
type: string
default: linux
filename:
default: lando
description: The name of the resulting binary
required: false
type: string
default: lando
fatcore:
default: false
description: Whether to build a fat binary or not
required: false
type: boolean
default: false

jobs:
pkg-binary:
Expand Down

0 comments on commit 5b8be3f

Please sign in to comment.