Skip to content

Commit

Permalink
Try to export environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Feb 3, 2024
1 parent a301067 commit 4c2dc3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/export-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo "CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH >> "$GITHUB_ENV"
echo "CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH" >> "$GITHUB_ENV"
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
run: sudo apt install nix cmake
- name: Run nix develop
run: |
sudo nix develop --extra-experimental-features nix-command --extra-experimental-features flakes
echo "CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH" >> "$GITHUB_ENV"
sudo nix develop --profile /tmp/my-build-env --extra-experimental-features nix-command --extra-experimental-features flakes --command ./.github/scripts/export-env.sh
- uses: lf-lang/action-check-lf-files@main
with:
check_mode: "compile"
Expand Down

0 comments on commit 4c2dc3c

Please sign in to comment.