Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action hangs with nektos/act while installing on ubuntu #15

Open
ncpleslie opened this issue Nov 29, 2023 · 0 comments
Open

Action hangs with nektos/act while installing on ubuntu #15

ncpleslie opened this issue Nov 29, 2023 · 0 comments

Comments

@ncpleslie
Copy link

ncpleslie commented Nov 29, 2023

Action hangs while installing dependencies when using nektos/act to test the action locally.

My current usage (Most of the action has been removed for brevity:

...
  build:
    strategy:
      fail-fast: false
      matrix:
        build: [
            { name: wailsTest, platform: linux/amd64, os: ubuntu-latest },
          ]
    runs-on: ${{ matrix.build.os }}
    steps:
      # steps removed for brevity
      - uses: dAppServer/[email protected]
        with:
          build-name: ${{ matrix.build.name }}
          build-platform: ${{ matrix.build.platform }}
          go-version: "1.21"
          node-version: 18
...

Output from terminal:

   ubuntu-mono wayland-protocols xdg-dbus-proxy xdg-desktop-portal
   xdg-desktop-portal-gtk xkb-data
 0 upgraded, 238 newly installed, 0 to remove and 30 not upgraded.
 Need to get 145 MB of archives.
 After this operation, 578 MB of additional disk space will be used.

According to this issue on the Act repo, "It's hanging on confirmation to install packages [Y/n] prompt in which case apt should be run with -y flag"

Fix:
Update line 133 of action.yml from:

run: sudo apt-get update && sudo apt-get install libgtk-3-0 libwebkit2gtk-4.0-dev gcc-aarch64-linux-gnu

to

run: sudo apt-get update && sudo apt-get -yq install libgtk-3-0 libwebkit2gtk-4.0-dev gcc-aarch64-linux-gnu

I can confirm this has fixed my issue on my fork
I can put a PR up with the fix, if requested.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant