From 29af42e20cadb40ac2dded5fdb4a47eb7e8f0981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Tue, 31 May 2022 15:27:07 -0700 Subject: [PATCH] Run qemu in tmpfs --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17fc581d2..518254c6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -315,10 +315,12 @@ jobs: --env "GH_TOKEN=$GH_TOKEN" \ --env "GH_USER=$GH_USER" \ --platform ${{ matrix.platform }} \ - --volume "$PWD:$PWD" \ + --mount type=bind,source="$PWD",target="$PWD" \ + --mount type=tmpfs,destination=/root/.pub-cache \ + --mount type=tmpfs,destination=/tmp \ --workdir "$PWD" \ docker.io/library/dart:latest \ - /bin/sh -c "dart pub get && dart run grinder pkg-github-linux-${{ matrix.arch }}" + /bin/sh -c "cp -R . /tmp/workspace && cd /tmp/workspace && dart pub get && dart run grinder pkg-github-linux-${{ matrix.arch }}" env: GH_TOKEN: "${{ secrets.GH_TOKEN }}" GH_USER: sassbot