From 103d7183a044c6fe7ea28fff843bab1a4e9b4204 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Mon, 14 Mar 2022 13:51:31 +0100 Subject: [PATCH] Again --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0aaddb3..57566fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,15 +24,19 @@ jobs: nix_path: nixpkgs=channel:nixos-unstable - name: Install nix dependencies - run: nix-shell --run 'env' + env: + WITH_SHELL: "nix-shell --argstr compiler ${{matrix.compiler}} --run" + run: ${WITH_SHELL} 'env' - name: Make configure script - run: test -f ./configure || nix-shell --run 'autoreconf -sfiv' + env: + WITH_SHELL: "nix-shell --argstr compiler ${{matrix.compiler}} --run" + run: test -f ./configure || ${WITH_SHELL} 'autoreconf -sfiv' ## TODO: do this in a matrix - name: Compiler ${{matrix.compiler}} env: - WITH_SHELL: "nix-shell ../../shell.nix--argstr compiler ${{matrix.compiler}} --run" + WITH_SHELL: "nix-shell ../../shell.nix --argstr compiler ${{matrix.compiler}} --run" run: | mkdir -p build/${{matrix.compiler}} cd build/${{matrix.compiler}}