Run apt-get update before trying to install libgli and libsdl2 on linux build machines

Fixes this issue https://github.com/actions/runner-images/issues/5562
This commit is contained in:
Graham Pentheny 2022-11-27 19:33:56 -05:00
parent 04ea2a57b1
commit d0b2ed8ff5
2 changed files with 9 additions and 3 deletions

View File

@ -89,7 +89,9 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install opengl and SDL - name: Install opengl and SDL
run: sudo apt-get install -y libgl1-mesa-dev libsdl2-dev run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libsdl2-dev
- name: Download & Install premake - name: Download & Install premake
working-directory: RecastDemo working-directory: RecastDemo
@ -119,7 +121,9 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install opengl and SDL - name: Install opengl and SDL
run: sudo apt-get install -y libgl1-mesa-dev libsdl2-dev run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libsdl2-dev
- name: Configure CMake - name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.conf}} run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.conf}}

View File

@ -47,7 +47,9 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install opengl and SDL - name: Install opengl and SDL
run: sudo apt-get install -y libgl1-mesa-dev libsdl2-dev run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libsdl2-dev
- name: Download & Install premake - name: Download & Install premake
working-directory: RecastDemo working-directory: RecastDemo