Skip to content

Commit

Permalink
fix dependency and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed May 9, 2024
1 parent fce6b87 commit 3c963b8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: sudo apt-get update
- name: Install Dependencies
run: |
sudo ./dependencies.sh -yd
. ./dependencies.sh -yd
sudo ./configure.sh -yd
sudo sed -i 's/"immutable": true/"immutable": false/g' /etc/security/rootasrole.json
echo "/home/runner/.cargo/bin" >> $GITHUB_PATH
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Install Project
env:
PROFILE: debug
run: sudo -E make -e install
run: make -e install
- name: Run Sr
env:
RUST_LOG: debug
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
override: true

- name: Install Dependencies
run: sudo ./dependencies.sh -yd
run: . ./dependencies.sh -yd

- name: Configure
run: sudo ./configure.sh -yd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: apt install sudo -y

- name: Install Dependencies
run: sudo ./dependencies.sh -yd
run: . ./dependencies.sh -yd

- name: Install file configuration
run: sudo ./configure.sh -yd
Expand Down
2 changes: 1 addition & 1 deletion dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ while getopts "yd" opt; do
done

echo "Install Rust Cargo compiler"
if [ $(cargo &>/dev/null ; echo $?) -eq 0 ]; then
if [ $(command -v cargo &>/dev/null; echo $?) -eq 0 ]; then
echo "Cargo is installed"
else
curl https://sh.rustup.rs -sSf | sh -s -- ${YES}
Expand Down

0 comments on commit 3c963b8

Please sign in to comment.