Skip to content

Commit

Permalink
fix: setup env after elixir install
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Jul 15, 2024
1 parent fc37465 commit 310b0c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/precompiled_nif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,14 @@ 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 \
locales curl wget cmake zip unzip
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
Expand All @@ -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:
Expand Down

0 comments on commit 310b0c1

Please sign in to comment.