From: Vincent Fu Date: Fri, 27 Sep 2024 20:37:31 +0000 (+0000) Subject: ci/qemu: use a tarball to xfer source code to guest X-Git-Tag: fio-3.39~34 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=141f3f5fdfba7dc4bf01a161560b4a9b9d1ed5da;p=fio.git ci/qemu: use a tarball to xfer source code to guest Instead of faking a GitHub Actions runner environment, just create a source code tarball and transfer it to the guest VM. This is simpler and does not depend on the continued existence of the action used previously. Signed-off-by: Vincent Fu --- diff --git a/.github/workflows/qemu.yml b/.github/workflows/qemu.yml index f987b33c..db71fbe8 100644 --- a/.github/workflows/qemu.yml +++ b/.github/workflows/qemu.yml @@ -57,6 +57,7 @@ jobs: env: DISTRO: debian-12 SSHCMD: ssh root@localhost -p 2022 + SCPCMD: scp -P 2022 CI_TARGET_BUILD: linux CI_TARGET_OS: debian @@ -64,6 +65,11 @@ jobs: - name: Check out repository uses: actions/checkout@v4 + - name: Create tarball containing repository + run: | + git archive --format=tar.gz -o fio-src.tar.gz --prefix=fio/ HEAD + git log -1 + - name: Create guest VM image uses: ./.github/actions/create-guest-image with: @@ -83,11 +89,10 @@ jobs: host_key: true options: ${{ matrix.device }} - - name: Clone fio on guest + - name: Transfer fio source to guest run: | - $SSHCMD "apt-get update && apt-get install -qq git" - $SSHCMD "git clone https://github.com/taiki-e/checkout-action --branch v1.3.0" - $SSHCMD "mkdir fio && cd fio && ../checkout-action/main.sh && git log -1" + $SCPCMD fio-src.tar.gz root@localhost:/root/ + $SSHCMD "tar xzf fio-src.tar.gz" - name: Install dependencies on guest run: $SSHCMD "cd fio && ./ci/actions-install.sh"