Updates to github workflows to work with gh act

* Run `apt-get update` before installing packages, as the local VM may
  not have these packages already installed like the github.com runners
  do.
* Add bison, flex, and texinfo, as they may not already be on the local
  VM as they may be on the github.com runners.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
This commit is contained in:
Bryan Hundven 2024-03-27 15:07:50 -07:00 committed by Chris Packham
parent 2932dd280a
commit 0ffe914322
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ jobs:
- name: prereq Linux - name: prereq Linux
if: ${{ runner.os == 'Linux' }} if: ${{ runner.os == 'Linux' }}
run: | run: |
sudo apt-get install -y gperf help2man libtool-bin meson ninja-build sudo apt-get update && sudo apt-get install -y bison flex gperf help2man libtool-bin meson ninja-build texinfo
echo "${{ github.workspace }}/.local/bin" >> "$GITHUB_PATH" echo "${{ github.workspace }}/.local/bin" >> "$GITHUB_PATH"
- name: prereq macOS - name: prereq macOS
if: ${{ runner.os == 'macOS' }} if: ${{ runner.os == 'macOS' }}

View File

@ -17,7 +17,7 @@ jobs:
- name: "prereq Linux" - name: "prereq Linux"
if: ${{ runner.os == 'Linux' }} if: ${{ runner.os == 'Linux' }}
run: | run: |
sudo apt-get install -y gperf help2man libtool-bin meson ninja-build sudo apt-get update && sudo apt-get install -y bison flex gperf help2man libtool-bin meson ninja-build texinfo
- name: "prereq macOS" - name: "prereq macOS"
if: ${{ runner.os == 'macOS' }} if: ${{ runner.os == 'macOS' }}
run: | run: |
@ -80,7 +80,7 @@ jobs:
- name: "prereq Linux" - name: "prereq Linux"
if: ${{ runner.os == 'Linux' }} if: ${{ runner.os == 'Linux' }}
run: | run: |
sudo apt-get install -y gperf help2man libtool-bin sudo apt-get update && sudo apt-get install -y bison flex gperf help2man libtool-bin texinfo
echo "$GITHUB_WORKSPACE/.local/bin" >> "$GITHUB_PATH" echo "$GITHUB_WORKSPACE/.local/bin" >> "$GITHUB_PATH"
- name: "ct-ng source" - name: "ct-ng source"
run: | run: |