Skip to content

Commit

Permalink
Try sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-s committed Jun 24, 2024
1 parent 82182ce commit 4641048
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
working-directory: examples/libcalc
env:
SBCL_SRC: ${{ github.workspace }}/../sbcl
LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime
LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime:${{ github.workspace }}/examples/libcalc
LD_LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime
CL_SOURCE_REGISTRY: "${{ github.workspace }}//"
run: |
$SBCL_SRC/run-sbcl.sh --script script.lisp
gcc -Wall -fPIC -shared -o libcalc.so libcalc.c -lsbcl
gcc -Wall -o example example.c -lcalc -lsbcl -L${{ github.workspace }}/examples/libcalc
mv libcalc.so /usr/local/lib
cp libcalc.core /usr/local/lib
sudo mv libcalc.so /usr/local/lib
sudo cp libcalc.core /usr/local/lib
echo "(+ 1 2)" | ./example
python --version
echo "(+ 1 2)" | python ./example.py
Expand Down

0 comments on commit 4641048

Please sign in to comment.