Skip to content

Commit

Permalink
(CI) rust.yml use cache-apt-pkgs-action for apt installs
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Jul 22, 2024
1 parent f21d178 commit b9d4c23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,14 @@ jobs:
- uses: moonrepo/setup-rust@v1
with:
channel: ${{ env.MSRV_UPLOAD }}
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: linux-tools-generic
version: 1.0
- name: flamegraph.sh
shell: bash
run: |
set -eux
sudo -- apt-get install -y linux-tools-generic
cargo install --locked flamegraph --version=${FLAMEGRAPH_VERSION}
RUSTFLAGS=-g cargo build --profile flamegraph
export OUT="./flamegraph-dtf2-2.svg"
Expand Down

0 comments on commit b9d4c23

Please sign in to comment.