Skip to content

Commit 7b3120b

Browse files
committed
Fix GitHub Actions apt package installation
Add apt-get update before package installation to prevent 404 errors caused by outdated package indices. Root cause: Ubuntu package repositories periodically remove old versions. Without updating the package index, apt attempts to fetch non-existent versions.
1 parent 88fa89a commit 7b3120b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ jobs:
1616
uses: actions/checkout@v4
1717
- name: install-dependencies
1818
run: |
19-
sudo apt-get install build-essential device-tree-compiler expect
20-
sudo apt-get install libasound2-dev libudev-dev
19+
sudo apt-get update
20+
sudo apt-get install -y build-essential device-tree-compiler expect libasound2-dev libudev-dev
2121
- name: install sound multiplexer ${{ matrix.dependency }}
2222
if: matrix.dependency != 'none'
2323
run: |
24-
sudo apt-get update
25-
sudo apt-get install ${{ matrix.dependency }}
24+
sudo apt-get install -y ${{ matrix.dependency }}
2625
- name: default build
2726
run: make
2827
shell: bash
@@ -54,6 +53,7 @@ jobs:
5453
- uses: actions/checkout@v4
5554
- name: coding convention
5655
run: |
56+
sudo apt-get update
5757
sudo apt-get install -q -y clang-format-18
5858
.ci/check-format.sh
5959
shell: bash

0 commit comments

Comments
 (0)