Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add virtiofsd build support #1742

Merged
merged 2 commits into from
Jun 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/bins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,9 @@ jobs:
package: tailstream
secrets:
token: ${{ secrets.HUB_JWT }}
virtiofsd:
uses: ./.github/workflows/bin-package.yaml
with:
package: virtiofsd
secrets:
token: ${{ secrets.HUB_JWT }}
30 changes: 30 additions & 0 deletions bins/packages/virtiofsd/virtiofsd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
VIRTIOFSD_VERSION="1.3.0"
VIRTIOFSD_CHECKSUM="0fc813a373eef188dc6b8ca152b2f286"
VIRTIOFSD_LINK="https://gitlab.com/virtio-fs/virtiofsd/uploads/9a4f2261fcb1701f1e709694b5c5d980/virtiofsd-v1.3.0.zip"

download_virtiofsd() {
download_file ${VIRTIOFSD_LINK} ${VIRTIOFSD_CHECKSUM} virtiofsd-${VIRTIOFSD_VERSION}.zip
}

prepare_virtiofsd() {
echo "[+] prepare virtiofsd"
github_name "virtiofsd-${VIRTIOFSD_VERSION}"
}

install_virtiofsd() {
echo "[+] install virtiofsd"

mkdir -p "${ROOTDIR}/bin"
unzip -p virtiofsd-${VIRTIOFSD_VERSION} > "${ROOTDIR}/bin/virtiofsd-rs"
chmod +x "${ROOTDIR}/bin/virtiofsd-rs"
}

build_virtiofsd() {
pushd "${DISTDIR}"

download_virtiofsd
prepare_virtiofsd
install_virtiofsd

popd
}