Skip to content

Commit

Permalink
trying to remove installing rust in ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravm committed Jul 8, 2024
1 parent 0e29df7 commit e02346c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
run: |
apt-get update
apt-get install -y curl git build-essential libssl-dev
if ! command -v rustup &> /dev/null # might not be installed while executing using `act`
then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. $HOME/.cargo/env
fi
rustup update stable
# if ! command -v rustup &> /dev/null # might not be installed while executing using `act`
# then
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# . $HOME/.cargo/env
# fi
# rustup update stable
- name: Install Node.js # required for build-models.sh
run: |
Expand All @@ -48,23 +48,23 @@ jobs:
- uses: actions/checkout@v4 # checkout the repository
- name: Build models
run: |
. $HOME/.cargo/env
# . $HOME/.cargo/env
bash ./build-models.sh
- name: Build
run: |
. $HOME/.cargo/env
# . $HOME/.cargo/env
cargo build --verbose
- name: Run tests
run: |
. $HOME/.cargo/env
# . $HOME/.cargo/env
bash ./run-tests.sh
- name: Lint
run: |
. $HOME/.cargo/env
# . $HOME/.cargo/env
cargo clippy -- -D warnings
- name: Format
run: |
. $HOME/.cargo/env
# . $HOME/.cargo/env
cargo fmt -- ./lib/src/serviceinfo/models/*.rs # workaround to fix autogenerated code formatting
cargo fmt -- ./lib/src/tes/models/*.rs
cargo fmt -- --check

0 comments on commit e02346c

Please sign in to comment.