Skip to content

The ps2 docker container does not support actions/cache in GitHub actions #105

@madebr

Description

@madebr

Hey!

While trying to add ccache support to SDL's GitHub action workflows, I noticed actions/cache/store fails on the ps2 and psp job.

It looks like /bin/tar inside the docker image does not support the --posix argument.

https://github.com/madebr/SDL/actions/runs/13449060745/job/37580263335#step:48:11

Log of failing actions/cache/save
Run actions/cache/save@v4
  with:
    path: /home/runner/work/_temp/ccache
    key: ccache-ps2-202502210257_11
    enableCrossOsArchive: false
  env:
    CCACHE_DIR: /home/runner/work/_temp/ccache
/usr/bin/docker exec  d5b317ce93c2cc48d4d4cbba88a5ef208635d393362a045a3ce6b35815bc5d94 sh -c "cat /etc/*release | grep ^ID"
/bin/tar --posix -cf cache.tgz --exclude cache.tgz -P -C /__w/SDL/SDL --files-from manifest.txt -z
/bin/tar: unrecognized option: posix
BusyBox v1.37.0 (2024-12-13 21:18:49 UTC) multi-call binary.

Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [LONGOPT]... [FILE]...

Create, extract, or list files from a tar file

	c	Create
	x	Extract
	t	List
	-f FILE	Name of TARFILE ('-' for stdin/out)
	-C DIR	Change to DIR before operation
	-v	Verbose
	-O	Extract to stdout
	-m	Don't restore mtime
	-o	Don't restore user:group
	-k	Don't replace existing files
	-Z	(De)compress using compress
	-z	(De)compress using gzip
	-J	(De)compress using xz
	-j	(De)compress using bzip2
	--lzma	(De)compress using lzma
	-a	(De)compress based on extension
	-h	Follow symlinks
	-T FILE	File with names to include
	-X FILE	File with glob patterns to exclude
	--exclude PATTERN	Glob pattern to exclude
	--overwrite		Replace existing files
	--strip-components NUM	NUM of leading components to strip
	--no-recursion		Don't descend in directories
	--numeric-owner		Use numeric user:group
	--no-same-permissions	Don't restore access permissions
Warning: Failed to save: "/bin/tar" failed with error: The process '/bin/tar' failed with exit code 1
Warning: Cache save failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions