From 698761827e7031c7704f271b0149d7ec6fe2ca62 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Fri, 15 Jul 2022 11:38:11 +0200 Subject: [PATCH] ci: run nix in container on self-hosted runners Signed-off-by: Roman Volosatovs --- .github/workflows/coverage.yml | 5 ++++- .github/workflows/test.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6d18bda5a..a081f9f7f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,6 +14,10 @@ jobs: test: name: ${{ matrix.crate.name }} coverage runs-on: ${{ matrix.crate.host }} + container: + image: nixos/nix + volumes: + - /dev:/dev env: ENARX_BACKEND: ${{ matrix.crate.name }} @@ -53,7 +57,6 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v17 - uses: cachix/cachix-action@v10 with: name: enarx diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21b0bef2d..78aa8b76f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,11 +10,14 @@ jobs: main: name: enarx ${{ matrix.backend.name }} nightly ${{ matrix.profile.name }} runs-on: ${{ matrix.backend.host }} + container: + image: nixos/nix + volumes: + - /dev:/dev env: ENARX_BACKEND: ${{ matrix.backend.name }} steps: - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v17 - uses: cachix/cachix-action@v10 with: name: enarx