Skip to content

[feature] add option or command to rsync back to host #10

@Caio99BR

Description

@Caio99BR
2026-02-04T20:11:18.1058742Z + ls -l /home/runner/work/Workflow/Workflow/artifacts/Eden-v0.1.1-amd64.tar.zst
2026-02-04T20:11:18.1078324Z -rw-r--r--  1 root 1001 64338211 Feb  4 20:11 /home/runner/work/Workflow/Workflow/artifacts/Eden-v0.1.1-amd64.tar.zst
2026-02-04T20:11:18.1080451Z + echo 'FreeBSD package created at: /home/runner/work/Workflow/Workflow/artifacts/Eden-v0.1.1-amd64.tar.zst'
2026-02-04T20:11:18.1081241Z FreeBSD package created at: /home/runner/work/Workflow/Workflow/artifacts/Eden-v0.1.1-amd64.tar.zst
2026-02-04T20:11:18.1093900Z artifacts -> /home/runner/artifacts
2026-02-04T20:11:18.1094758Z artifacts/Eden-v0.1.1-amd64.tar.zst -> /home/runner/artifacts/Eden-v0.1.1-amd64.tar.zst
2026-02-04T20:11:18.1106199Z total 1
2026-02-04T20:11:18.1106693Z drwxr-xr-x  2 root wheel 3 Feb  4 20:11 artifacts
2026-02-04T20:11:18.1107250Z drwxr-xr-x  4 1001 1001  4 Feb  4 19:55 work
2026-02-04T20:11:18.1150756Z ##[group]Run cp -Lvr "/home/runner/artifacts" "/home/runner/work/Workflow/Workflow/"
2026-02-04T20:11:18.1151376Z �[36;1mcp -Lvr "/home/runner/artifacts" "/home/runner/work/Workflow/Workflow/"�[0m
2026-02-04T20:11:18.1151850Z �[36;1mls -l "/home/runner/work/Workflow/Workflow/"�[0m
2026-02-04T20:11:18.1228113Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2026-02-04T20:11:18.1228482Z env:
...
2026-02-04T20:11:18.1282326Z ##[endgroup]
2026-02-04T20:11:18.1352675Z cp: cannot stat '/home/runner/artifacts': No such file or directory
2026-02-04T20:11:18.1365053Z ##[error]Process completed with exit code 1.

While using freebsd {0}, files aren't synced back to host.
I think it would take long to sync each time you run via shell freebsd {0} and there's no way to know when it got 'last used', anyway it's fine like this.
But if you use functions like upload-actions it will just throw error cause the file is on qemu and not host

I fixed here with:
rsync -av -e ssh freebsd:${{ github.workspace }}/artifacts/ ${{ github.workspace }}/artifacts/

But I think it would be good to document it like you should use nfs or do a rsync to sync qemu files to host

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions