From 0ffe914322dc0590355d3253c5f6ed3ce468ef0f Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Wed, 27 Mar 2024 15:07:50 -0700 Subject: [PATCH] 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 --- .github/workflows/build-toolchains.yml | 2 +- .github/workflows/continuous-integration-workflow.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-toolchains.yml b/.github/workflows/build-toolchains.yml index 1031951a..4267d131 100644 --- a/.github/workflows/build-toolchains.yml +++ b/.github/workflows/build-toolchains.yml @@ -66,7 +66,7 @@ jobs: - name: prereq Linux if: ${{ runner.os == 'Linux' }} 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" - name: prereq macOS if: ${{ runner.os == 'macOS' }} diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index e7227581..06d8aa44 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -17,7 +17,7 @@ jobs: - name: "prereq Linux" if: ${{ runner.os == 'Linux' }} 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" if: ${{ runner.os == 'macOS' }} run: | @@ -80,7 +80,7 @@ jobs: - name: "prereq Linux" if: ${{ runner.os == 'Linux' }} 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" - name: "ct-ng source" run: |