From 310b0c1eafe716cfcf80307bb8656f99f5148ba9 Mon Sep 17 00:00:00 2001 From: Paulo Valente <16843419+polvalente@users.noreply.github.com> Date: Mon, 15 Jul 2024 19:33:13 -0300 Subject: [PATCH] fix: setup env after elixir install --- .github/workflows/precompiled_nif.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/precompiled_nif.yml b/.github/workflows/precompiled_nif.yml index e91f7fd..c96be87 100644 --- a/.github/workflows/precompiled_nif.yml +++ b/.github/workflows/precompiled_nif.yml @@ -102,7 +102,7 @@ jobs: cudnn_tarball: "https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.2.0.82_cuda12-archive.tar.xz" container: ${{ matrix.container }} steps: - - name: Setup dependencies and env + - name: Setup Dependencies run: | apt-get update apt-get install -y build-essential automake autoconf pkg-config bc curl git libssl-dev gzip python3 ca-certificates \ @@ -110,8 +110,6 @@ jobs: echo "${LANG} UTF-8" >> /etc/locale.gen locale-gen update-locale LANG=${LANG} - echo "NX_IREE_SOURCE_DIR=$(elixir -e 'IO.puts(Path.absname(~s(${{env.NX_IREE_SOURCE_DIR}})))')" > $GITHUB_ENV - echo "PKG_NAME=libnx_iree-linux-x86_64-nif-${{matrix.nif_version}}" >> $GITHUB_ENV - name: checkout uses: actions/checkout@v4 @@ -121,6 +119,11 @@ jobs: version-file: .tool-versions version-type: strict + - name: Configure Env + run: | + echo "NX_IREE_SOURCE_DIR=$(elixir -e 'IO.puts(Path.absname(~s(${{env.NX_IREE_SOURCE_DIR}})))')" > $GITHUB_ENV + echo "PKG_NAME=libnx_iree-linux-x86_64-nif-${{matrix.nif_version}}" >> $GITHUB_ENV + - name: Setup Ninja uses: ashutoshvarma/setup-ninja@master with: