Skip to content

Commit ff973ac

Browse files
committed
Call apt-get update before calling apt-get install
1 parent 3c145c9 commit ff973ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/actions/setup-target/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343
if: inputs.arch != 'x86_64'
4444
shell: bash
4545
run: |
46-
sudo apt install -y \
46+
sudo apt-get update && sudo apt-get install -y \
4747
curl \
4848
gcc-aarch64-linux-gnu \
4949
gcc-arm-linux-gnueabihf \
@@ -59,7 +59,8 @@ runs:
5959
- name: Install dependencies (x86_64 linux)
6060
if: inputs.target == 'x86_64-unknown-linux-gnu' || inputs.target == 'x86_64-unknown-linux-musl'
6161
shell: bash
62-
run: sudo apt-get install musl-tools libudev-dev
62+
run: |
63+
sudo apt-get update && sudo apt-get install musl-tools libudev-dev
6364
6465
- name: Set environment variables
6566
if: inputs.arch != 'x86_64'

0 commit comments

Comments
 (0)