diff --git a/.github/workflows/build-openocd.yml b/.github/workflows/build-openocd.yml index 3b138ef1bf8..ee7e43a6f9e 100644 --- a/.github/workflows/build-openocd.yml +++ b/.github/workflows/build-openocd.yml @@ -38,7 +38,7 @@ jobs: - name: Install prerequisities if: ${{ steps.cache.outputs.cache-hit != 'true' }} run: | - apt -qqy update && apt -qqy --no-install-recommends install \ + sudo apt -qqy update && sudo apt -qqy --no-install-recommends install \ make libtool pkg-config autoconf automake texinfo - name: Build and install OpenOCD @@ -50,5 +50,5 @@ jobs: ./configure --prefix=/opt/openocd --enable-remote-bitbang \ CFLAGS="-Wno-error=misleading-indentation -Wno-error=stringop-overflow" make -j`nproc` - make install + sudo make install popd diff --git a/.github/workflows/test-openocd.yml b/.github/workflows/test-openocd.yml index 71829afa48b..2e19a888568 100644 --- a/.github/workflows/test-openocd.yml +++ b/.github/workflows/test-openocd.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Install utils run: | - apt -qqy update && apt -qqy --no-install-recommends install \ + sudo apt -qqy update && sudo apt -qqy --no-install-recommends install \ cpanminus ccache ninja-build pip3 install meson cpanm Bit::Vector