Skip to content

Commit

Permalink
more sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
olegdayo committed May 18, 2023
1 parent c5c9264 commit b90a46d
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: mkdir dist

- name: Setup Environment
run: ./scripts/setup.sh
run: sudo ./scripts/setup.sh

- name: Check Format
run: cargo fmt --all -- --check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- uses: actions/checkout@v3

- name: Run Script
run: ./scripts/setup.sh
run: sudo ./scripts/setup.sh
2 changes: 1 addition & 1 deletion .github/workflows/linux-perl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
perl-version: '5'

- name: Run Script
run: perl scripts/setup.pl
run: sudo perl scripts/setup.pl
2 changes: 1 addition & 1 deletion .github/workflows/linux-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: mkdir dist

- name: Setup Environment
run: ./scripts/setup.sh
run: sudo ./scripts/setup.sh

- name: Test
run: cargo test --verbose --verbose
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: mkdir dist

- name: Setup Environment
run: ./scripts/setup.sh
run: sudo ./scripts/setup.sh

- name: Test
run: cargo test --verbose --verbose
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- uses: actions/checkout@v3

- name: Run Script
run: ./scripts/setup.sh
run: sudo ./scripts/setup.sh
2 changes: 1 addition & 1 deletion .github/workflows/macos-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: mkdir dist

- name: Setup Environment
run: ./scripts/setup.sh
run: sudo ./scripts/setup.sh

- name: Build
run: npx tauri build --verbose
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-perl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
perl-version: '5'

- name: Run Script
run: perl scripts/setup.pl
run: sudo perl scripts/setup.pl
2 changes: 1 addition & 1 deletion .github/workflows/macos-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: mkdir dist

- name: Setup Environment
run: ./scripts/setup.sh
run: sudo ./scripts/setup.sh

- name: Test
run: cargo test --verbose --verbose
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: mkdir dist

- name: Setup Environment
run: ./scripts/setup.sh
run: sudo ./scripts/setup.sh

- name: Test
run: cargo test --verbose --verbose
Expand Down
4 changes: 2 additions & 2 deletions scripts/setup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ sub linux {

print "Adding shared libraries...\n";
`
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TORCH_DIR/libtorch/lib &&\
sudo sh -c "echo $TORCH_DIR/libtorch/lib >> /etc/ld.so.conf" &&\
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${PWD}/libtorch/lib" &&\
sudo sh -c "echo ${PWD}/libtorch/lib >> /etc/ld.so.conf" &&\
sudo ldconfig &&\
sudo ldconfig -p
`;
Expand Down

0 comments on commit b90a46d

Please sign in to comment.