Skip to content

Commit

Permalink
ci: run nix in container on self-hosted runners
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <roman@profian.com>
  • Loading branch information
rvolosatovs committed Jul 15, 2022
1 parent ea8dc36 commit 6987618
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -53,7 +57,6 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@v10
with:
name: enarx
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6987618

Please sign in to comment.