Skip to content

AntelopeIO/upload-artifact-large-chunks-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload Artifact With Large Chunks

actions/upload-artifact, at the time of this writing, uploads a large file serially in 8MB chunks. There is no way to adjust that behavior and it results in alarmingly slow uploads for large files. upload-artifact-large-chunks-action uploads the file serially in 96MB chunks. I've seen this improve upload speeds for large files (100+MB) on the order of 5x, even for GitHub hosted runners which ought to have low latency to the storage platform.

This action is not as flexible as actions/upload-artifact: it only supports uploading a single file -- no globbing.

Inputs

All required:

  • name - Artifact name
  • path - Path to file to upload

Example:

    steps:
      - name: make a blob
        run: dd if=/dev/urandom of=blob.bin bs=1M count=110
      - name: now upload the blob
        uses: AntelopeIO/upload-artifact-large-chunks-action@v1
        with:
          name: its-a-blob
          path: blob.bin

Rebuilding dist

ncc build main.mjs --license licenses.txt

About

GitHub action to upload an artifact in large chunks

Resources

License

Stars

Watchers

Forks