Skip to content

Commit

Permalink
make llvm deps in path
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Dec 5, 2024
1 parent 04e8642 commit 9c5b8ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/actions/setup_native_deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ runs:
/usr/include/llvm-19
/var/cache/apt
/var/lib/apt/lists
/etc/profile.d/llvm19.sh
key:
${{ runner.os }}-llvm-19-${{ hashFiles('scripts/dependencies.sh') }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/trunk-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup rust and cairo native env
uses: ./.github/actions/bootstrap

- name: Trunk Check
uses: trunk-io/trunk-action@v1
uses: trunk-io/trunk-action@v1.1.19
5 changes: 5 additions & 0 deletions scripts/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ function setup_llvm_deps() {
libzstd-dev \
mlir-19-tools
'
# Add LLVM to PATH by creating a file in profile.d
echo 'export PATH=/usr/lib/llvm-19/bin:$PATH' | $SUDO tee /etc/profile.d/llvm19.sh
$SUDO chmod +x /etc/profile.d/llvm19.sh
# Source the file immediately
source /etc/profile.d/llvm19.sh
;;
*)
echo "Error: Unsupported operating system"
Expand Down

0 comments on commit 9c5b8ea

Please sign in to comment.