Skip to content

Commit

Permalink
CI: set up APT only when needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Jan 30, 2024
1 parent 20905c6 commit 9d840f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ jobs:
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: set up APT
run: |
printf 'Apt::Install-Recommends "false";\n' | sudo tee -a /etc/apt/apt.conf
sudo apt-get update
- name: check C compiler version
run:
${{matrix.cc}} --version
Expand Down Expand Up @@ -52,6 +48,11 @@ jobs:
shellcat --help
export MANPATH=~/.local/share/man MANWIDTH=80
man 1 shellcat | grep -A 10 -w SHELLCAT
- name: set up APT
if: matrix.cc == 'gcc'
run: |
printf 'Apt::Install-Recommends "false";\n' | sudo tee -a /etc/apt/apt.conf
sudo apt-get update
- name: run cppcheck
if: matrix.cc == 'gcc'
run: |
Expand Down

0 comments on commit 9d840f3

Please sign in to comment.