[GH-ISSUE #358] Makefile support #254

Closed
opened 2026-03-01 21:41:49 +03:00 by kerem · 8 comments
Owner

Originally created by @ctopinka on GitHub (Sep 4, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/358

[CI/test] Run make test
| /github/workflow/5: line 2: make: command not found
[CI/test] Failure - make test

Originally created by @ctopinka on GitHub (Sep 4, 2020). Original GitHub issue: https://github.com/nektos/act/issues/358 [CI/test] ⭐ Run make test | /github/workflow/5: line 2: make: command not found [CI/test] ❌ Failure - make test
kerem closed this issue 2026-03-01 21:41:49 +03:00
Author
Owner

@ctopinka commented on GitHub (Sep 7, 2020):

I see this now.


. Use an alternative runner image
To use a different image for the runner, use the -P option:

act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04. 

Just grab an image that includes make?

<!-- gh-comment-id:688504561 --> @ctopinka commented on GitHub (Sep 7, 2020): I see this now. ``` . Use an alternative runner image To use a different image for the runner, use the -P option: act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04. ``` Just grab an image that includes make?
Author
Owner

@ctopinka commented on GitHub (Sep 7, 2020):

Action is:

name: CI

on: [push]

jobs:

  test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-go@v2
        with:
          go-version: '^1.14' # The Go version to download (if necessary) and use.
      - uses: actions/setup-java@v1
        with:
          java-version: '9.0.4' # The JDK version to make available on the path.
          java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk.
          architecture: x64 # (x64 or x86) - defaults to x64.
      - run: go version
      - run: java -version
      - run: make test

<!-- gh-comment-id:688505436 --> @ctopinka commented on GitHub (Sep 7, 2020): Action is: ``` name: CI on: [push] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: '^1.14' # The Go version to download (if necessary) and use. - uses: actions/setup-java@v1 with: java-version: '9.0.4' # The JDK version to make available on the path. java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk. architecture: x64 # (x64 or x86) - defaults to x64. - run: go version - run: java -version - run: make test ```
Author
Owner

@ctopinka commented on GitHub (Sep 7, 2020):

Looks like I can just add one of these for it.

https://github.com/nektos/act-environments/blob/master/images/linux/scripts/installers/cmake.sh

<!-- gh-comment-id:688508509 --> @ctopinka commented on GitHub (Sep 7, 2020): Looks like I can just add one of these for it. https://github.com/nektos/act-environments/blob/master/images/linux/scripts/installers/cmake.sh
Author
Owner

@christopinka commented on GitHub (Sep 8, 2020):

Now I see build-essential is already there. Hmm... must not like my yml.

<!-- gh-comment-id:688937232 --> @christopinka commented on GitHub (Sep 8, 2020): Now I see build-essential is already there. Hmm... must not like my yml.
Author
Owner

@christopinka commented on GitHub (Sep 10, 2020):

Solution was

Dockerfile with
FROM node:current-buster-slim
RUN apt-get update && apt-get install build-essential -y

$ docker build -t mynode-slim .
$ act -P ubuntu-latest=mynode-slim:latest

<!-- gh-comment-id:690269888 --> @christopinka commented on GitHub (Sep 10, 2020): Solution was Dockerfile with FROM node:current-buster-slim RUN apt-get update && apt-get install build-essential -y $ docker build -t mynode-slim . $ act -P ubuntu-latest=mynode-slim:latest
Author
Owner

@christopinka commented on GitHub (Sep 10, 2020):

Alternatively choose an image with build-essentials

<!-- gh-comment-id:690270710 --> @christopinka commented on GitHub (Sep 10, 2020): Alternatively choose an image with build-essentials
Author
Owner

@christopinka commented on GitHub (Sep 10, 2020):

This can be closed. Thanks.

<!-- gh-comment-id:690270905 --> @christopinka commented on GitHub (Sep 10, 2020): This can be closed. Thanks.
Author
Owner

@codefromthecrypt commented on GitHub (Apr 9, 2021):

Is this worth having folks work find this, then understand and work around? make is a regular tool used especially in golang projects. It would be a cleaner flow and close to a first time home run, if at least the large image had make installed on it...

<!-- gh-comment-id:816622175 --> @codefromthecrypt commented on GitHub (Apr 9, 2021): Is this worth having folks work find this, then understand and work around? make is a regular tool used especially in golang projects. It would be a cleaner flow and close to a first time home run, if at least the large image had make installed on it...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#254
No description provided.