[GH-ISSUE #161] Maven Step Fails #105

Closed
opened 2026-03-01 21:40:08 +03:00 by kerem · 30 comments
Owner

Originally created by @aaron-goulet-bfg on GitHub (Mar 16, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/161

Expected behavior:

  • Maven commands (mvn) execute when using act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04-full

Actual behavior:

  • Maven builds fail due to Maven not being installed.
| /github/workflow/3: line 2: mvn: command not found
[Build, Test, and Upload/Java Application Container]   ❌  Failure - Compile and Test Using Maven

The environments image appears to be either out-of-date, or does not install the same tools/dependencies as the GitHub virtual-environments. This means that currently, Java builds that can be executed directly from GitHub Actions cannot be ran locally.

Originally created by @aaron-goulet-bfg on GitHub (Mar 16, 2020). Original GitHub issue: https://github.com/nektos/act/issues/161 Expected behavior: - Maven commands (`mvn`) execute when using ` act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04-full` Actual behavior: - Maven builds fail due to Maven not being installed. ``` | /github/workflow/3: line 2: mvn: command not found [Build, Test, and Upload/Java Application Container] ❌ Failure - Compile and Test Using Maven ```` The environments image appears to be either out-of-date, or does not install the same tools/dependencies as the GitHub virtual-environments. This means that currently, Java builds that can be executed directly from GitHub Actions cannot be ran locally.
Author
Owner

@cplee commented on GitHub (Mar 16, 2020):

@aaron-goulet-bfg can you share a sample workflow file?

<!-- gh-comment-id:599775613 --> @cplee commented on GitHub (Mar 16, 2020): @aaron-goulet-bfg can you share a sample workflow file?
Author
Owner

@aaron-goulet-bfg commented on GitHub (Mar 17, 2020):

@aaron-goulet-bfg can you share a sample workflow file?

Anything I can do to help! Here's the relevant portion of the actual workflow that resulted in the above:

name: 'Build, Test, and Upload'

on: [pull_request]

jobs:
  build:
    name: 'Java Application Container'

    runs-on: ubuntu-18.04

    steps:
      - name: 'Checkout Repository'
        uses: actions/checkout@v2
        with:
          token: '${{ secrets.GITHUB_TOKEN }}'

      - name: 'Process Workflow Parameters'
        # Used for naming images.  Currently GitHub Action contexts do not
        # provide the short SHA/digest as a field.
        id: params
        run: |
          echo ::set-output name=app_name::$(echo "${{ github.repository }}" | sed -e 's,.*/\(.*\),\1,');
          echo ::set-output name=sha_digest::$(git rev-parse --short HEAD);
      - name: 'Java Environment Setup'
        uses: actions/setup-java
        with:
          java-version: 11

      - name: 'Compile and Test Using Maven'
        run: 'mvn -B --no-transfer-progress install'
        env:
          GITHUB_REPOSITORY: '${{ github.repository }}'
          APP_NAME: '${{ steps.params.outputs.app_name }}'
          SHA: '${{ steps.params.outputs.sha_digest }}'
# ... SNIP ...

And here's the CLI command used to run it:

 act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04-full -s "GITHUB_TOKEN=<VALID GITHUB TOKEN HERE>"
<!-- gh-comment-id:599830194 --> @aaron-goulet-bfg commented on GitHub (Mar 17, 2020): > @aaron-goulet-bfg can you share a sample workflow file? Anything I can do to help! Here's the relevant portion of the actual workflow that resulted in the above: ``` name: 'Build, Test, and Upload' on: [pull_request] jobs: build: name: 'Java Application Container' runs-on: ubuntu-18.04 steps: - name: 'Checkout Repository' uses: actions/checkout@v2 with: token: '${{ secrets.GITHUB_TOKEN }}' - name: 'Process Workflow Parameters' # Used for naming images. Currently GitHub Action contexts do not # provide the short SHA/digest as a field. id: params run: | echo ::set-output name=app_name::$(echo "${{ github.repository }}" | sed -e 's,.*/\(.*\),\1,'); echo ::set-output name=sha_digest::$(git rev-parse --short HEAD); - name: 'Java Environment Setup' uses: actions/setup-java with: java-version: 11 - name: 'Compile and Test Using Maven' run: 'mvn -B --no-transfer-progress install' env: GITHUB_REPOSITORY: '${{ github.repository }}' APP_NAME: '${{ steps.params.outputs.app_name }}' SHA: '${{ steps.params.outputs.sha_digest }}' # ... SNIP ... ``` And here's the CLI command used to run it: ``` act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04-full -s "GITHUB_TOKEN=<VALID GITHUB TOKEN HERE>" ```
Author
Owner

@aaron-goulet-bfg commented on GitHub (Mar 17, 2020):

Here's the script that the Packer template uses to install Maven normally: [link]

<!-- gh-comment-id:599831495 --> @aaron-goulet-bfg commented on GitHub (Mar 17, 2020): Here's the script that the Packer template uses to install Maven normally: [[link](https://github.com/actions/virtual-environments/blob/37dee70e0eca4dba94ab23f240057e67cf942eb2/images/linux/scripts/installers/java-tools.sh#L35-L40)]
Author
Owner

@github-actions[bot] commented on GitHub (May 17, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:629722310 --> @github-actions[bot] commented on GitHub (May 17, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@vroyer commented on GitHub (May 18, 2020):

I got the same error, how can i fix this ?

name: Java CI with Maven
on:
  push:
    branches: [ '*' ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build with Maven
      run: mvn --settings .settings.xml -B package

#act -v
...
[Java CI with Maven/build] ⭐  Run Build with Maven
DEBU[0093] Wrote command '/usr/bin/mvn --settings .settings.xml -B package' to 'workflow/2'
DEBU[0093] Writing entry to tarball workflow/2 len:104
[Java CI with Maven/build] Extracting content to '/github/'
[Java CI with Maven/build] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/2]'
| /github/workflow/2: line 2: /usr/bin/mvn: No such file or directory
[Java CI with Maven/build]   ❌  Failure - Build with Maven
DEBU[0094] exit with `FAILURE`: 127
Error: exit with `FAILURE`: 127
<!-- gh-comment-id:630158605 --> @vroyer commented on GitHub (May 18, 2020): I got the same error, how can i fix this ? ``` name: Java CI with Maven on: push: branches: [ '*' ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - name: Build with Maven run: mvn --settings .settings.xml -B package #act -v ... [Java CI with Maven/build] ⭐ Run Build with Maven DEBU[0093] Wrote command '/usr/bin/mvn --settings .settings.xml -B package' to 'workflow/2' DEBU[0093] Writing entry to tarball workflow/2 len:104 [Java CI with Maven/build] Extracting content to '/github/' [Java CI with Maven/build] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/2]' | /github/workflow/2: line 2: /usr/bin/mvn: No such file or directory [Java CI with Maven/build] ❌ Failure - Build with Maven DEBU[0094] exit with `FAILURE`: 127 Error: exit with `FAILURE`: 127 ```
Author
Owner

@github-actions[bot] commented on GitHub (Jul 18, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:660390202 --> @github-actions[bot] commented on GitHub (Jul 18, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@github-actions[bot] commented on GitHub (Sep 19, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:695136725 --> @github-actions[bot] commented on GitHub (Sep 19, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@garyarobinson commented on GitHub (Sep 22, 2020):

@vroyer @aaron-goulet-bfg
Temporary workaround until fix is released.

    - name: Download Maven
      run: |
        curl -sL https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip -o maven.zip
        apt-get update
        apt-get -y install unzip
        unzip -d /usr/share maven.zip
        rm maven.zip
        ln -s /usr/share/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
        echo "M2_HOME=/usr/share/apache-maven-3.6.3" | tee -a /etc/environment
<!-- gh-comment-id:696709869 --> @garyarobinson commented on GitHub (Sep 22, 2020): @vroyer @aaron-goulet-bfg Temporary workaround until fix is released. ``` - name: Download Maven run: | curl -sL https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip -o maven.zip apt-get update apt-get -y install unzip unzip -d /usr/share maven.zip rm maven.zip ln -s /usr/share/apache-maven-3.6.3/bin/mvn /usr/bin/mvn echo "M2_HOME=/usr/share/apache-maven-3.6.3" | tee -a /etc/environment ```
Author
Owner

@jeff-miller-cfa commented on GitHub (Oct 16, 2020):

when can we expect a fix for this?

<!-- gh-comment-id:710122037 --> @jeff-miller-cfa commented on GitHub (Oct 16, 2020): when can we expect a fix for this?
Author
Owner

@garyarobinson commented on GitHub (Oct 16, 2020):

Another decent workaround @jeff-miller-cfa ; use the full docker image

act -j build -P ubuntu-latest=nektos/act-environments-ubuntu:18.04

<!-- gh-comment-id:710123140 --> @garyarobinson commented on GitHub (Oct 16, 2020): Another decent workaround @jeff-miller-cfa ; use the full docker image ``` act -j build -P ubuntu-latest=nektos/act-environments-ubuntu:18.04```
Author
Owner

@dhowe commented on GitHub (Nov 6, 2020):

same problem here

<!-- gh-comment-id:723053469 --> @dhowe commented on GitHub (Nov 6, 2020): same problem here
Author
Owner

@sammyrulez commented on GitHub (Nov 6, 2020):

same problem here

<!-- gh-comment-id:723088117 --> @sammyrulez commented on GitHub (Nov 6, 2020): same problem here
Author
Owner

@neoromantique commented on GitHub (Dec 25, 2020):

@vroyer @aaron-goulet-bfg
Temporary workaround until fix is released.

    - name: Download Maven
      run: |
        curl -sL https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip -o maven.zip
        apt-get update
        apt-get -y install unzip
        unzip -d /usr/share maven.zip
        rm maven.zip
        ln -s /usr/share/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
        echo "M2_HOME=/usr/share/apache-maven-3.6.3" | tee -a /etc/environment

Thank you, this helps!

<!-- gh-comment-id:751142581 --> @neoromantique commented on GitHub (Dec 25, 2020): > @vroyer @aaron-goulet-bfg > Temporary workaround until fix is released. > > ``` > - name: Download Maven > run: | > curl -sL https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip -o maven.zip > apt-get update > apt-get -y install unzip > unzip -d /usr/share maven.zip > rm maven.zip > ln -s /usr/share/apache-maven-3.6.3/bin/mvn /usr/bin/mvn > echo "M2_HOME=/usr/share/apache-maven-3.6.3" | tee -a /etc/environment > ``` Thank you, this helps!
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:766476678 --> @github-actions[bot] commented on GitHub (Jan 25, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@mteodori commented on GitHub (Feb 25, 2021):

Another decent workaround @jeff-miller-cfa ; use the full docker image

act -j build -P ubuntu-latest=nektos/act-environments-ubuntu:18.04

this doesn't work for me, I chose Large image at install
and my ~/.actrc contains:

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

but still I have the same issue when running

<!-- gh-comment-id:786070014 --> @mteodori commented on GitHub (Feb 25, 2021): > Another decent workaround @jeff-miller-cfa ; use the full docker image > > ` act -j build -P ubuntu-latest=nektos/act-environments-ubuntu:18.04` this doesn't work for me, I chose _Large_ image at install and my `~/.actrc` contains: ``` -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 ``` but still I have the same issue when running
Author
Owner

@mohankarthik commented on GitHub (May 11, 2021):

Same issue. A resolution would be very helpful

<!-- gh-comment-id:838923075 --> @mohankarthik commented on GitHub (May 11, 2021): Same issue. A resolution would be very helpful
Author
Owner

@brainstorm commented on GitHub (Sep 27, 2021):

Trying to run https://github.com/brainstorm/opencv/blob/apple_silicon/.github/workflows/build.yml locally with act, also fails in mvn with ghcr.io/catthehacker/ubuntu:runner-18.04 (should be fine image according to docs, @cplee ?) :-S

I'm running on an M1 (Apple Silicon)... the sudo and docker errors are a bit confusing as well, but I guess I have to add --privileged to the cmdline mix?

(base) rvalls@m1 opencv % act -j build_linux_arm64 -P ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64
[Build OpenPnP OpenCV Distribution/build_linux_arm64] 🧪  Matrix: map[java:15 os:ubuntu-latest]
[Build OpenPnP OpenCV Distribution/build_linux_arm64] 🚀  Start image=node:12-buster-slim
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker run image=node:12-buster-slim platform=linux/amd64 entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker cp src=/Users/rvalls/dev/personal/opencv/. dst=/Users/rvalls/dev/personal/opencv
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[mkdir -p /Users/rvalls/dev/personal/opencv] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐  Run Checkout Repo
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ✅  Success - Checkout Repo
[Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐  Run Setup JDK ${{ matrix.java }}
INFO[0056]   ☁  git clone 'https://github.com/actions/setup-java' # ref=v1
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker cp src=/Users/rvalls/.cache/act/actions-setup-java@v1/ dst=/var/run/act/actions/actions-setup-java@v1/
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-java@v1/] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-java@v1/dist/setup/index.js] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::isExplicit:
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::explicit? false
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::evaluating 0 versions
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::match not found
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Downloading JDK from Azul
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Searching for files with extension: -linux_x64.tar.gz
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Downloading https://static.azul.com/zulu/bin/zulu15.34.17-ca-jdk15.0.4-linux_x64.tar.gz
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Downloading /tmp/dbfb7389-c202-4ce4-8c17-49a249612825
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::download complete
| [command]/bin/tar --version
| tar (GNU tar) 1.30
| Copyright (C) 2017 Free Software Foundation, Inc.
| License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
|
| Written by John Gilmore and Jay Fenlason.
| [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/temp_399697964 -f /tmp/dbfb7389-c202-4ce4-8c17-49a249612825
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::jdk extracted to /tmp/temp_399697964/zulu15.34.17-ca-jdk15.0.4-linux_x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Caching tool jdk 15.0.4 x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::source dir: /tmp/temp_399697964/zulu15.34.17-ca-jdk15.0.4-linux_x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::destination /opt/hostedtoolcache/jdk/15.0.4/x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::finished caching tool
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ⚙  ::set-output:: path=/opt/hostedtoolcache/jdk/15.0.4/x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ⚙  ::set-output:: version=15.0.4
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ❓  ##[add-matcher]/run/act/actions/actions-setup-java@v1/.github/java.json
| creating settings.xml with server-id: github; environment variables: username=$GITHUB_ACTOR, password=$GITHUB_TOKEN, and gpg-passphrase=null
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::created directory /root/.m2
| writing /root/.m2/settings.xml
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ✅  Success - Setup JDK ${{ matrix.java }}
[Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐  Run Get Version Info
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /Users/rvalls/dev/personal/opencv/workflow/2] user=
| /Users/rvalls/dev/personal/opencv/workflow/2: line 1: mvn: command not found
| /Users/rvalls/dev/personal/opencv/workflow/2: line 2: mvn: command not found
| /Users/rvalls/dev/personal/opencv/workflow/2: line 3: mvn: command not found
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ✅  Success - Get Version Info
[Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐  Run Build OpenCV on Arm64
INFO[0198]   ☁  git clone 'https://github.com/uraimo/run-on-arch-action' # ref=v2.0.10
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker cp src=/Users/rvalls/.cache/act/uraimo-run-on-arch-action@v2.0.10/ dst=/var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[node /var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.js] user=
| Configuring Docker for multi-architecture support
| [command]/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh /run/act/actions/uraimo-run-on-arch-action@v2.0.10/Dockerfiles/Dockerfile.aarch64.ubuntu18.04 run-on-arch-brainstorm-opencv-build-openpnp-opencv-distribution-aarch64-ubuntu18-04 --volume ${PWD}/artifacts:/artifacts --volume ${PWD}:/host_repo
| /run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh: line 38: sudo: command not found
| /run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh: line 39: sudo: command not found
| /run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh: line 40: docker: command not found
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ❗  ::error::The process '/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh' failed with exit code 127
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ❌  Failure - Build OpenCV on Arm64
Error: exit with `FAILURE`: 1
<!-- gh-comment-id:927855101 --> @brainstorm commented on GitHub (Sep 27, 2021): Trying to run https://github.com/brainstorm/opencv/blob/apple_silicon/.github/workflows/build.yml locally with act, also fails in mvn with `ghcr.io/catthehacker/ubuntu:runner-18.04` (should be fine image according to docs, @cplee ?) :-S I'm running on an M1 (Apple Silicon)... the `sudo` and `docker` errors are a bit confusing as well, but I guess I have to add `--privileged` to the cmdline mix? ``` (base) rvalls@m1 opencv % act -j build_linux_arm64 -P ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🧪 Matrix: map[java:15 os:ubuntu-latest] [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🚀 Start image=node:12-buster-slim [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker run image=node:12-buster-slim platform=linux/amd64 entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker cp src=/Users/rvalls/dev/personal/opencv/. dst=/Users/rvalls/dev/personal/opencv [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[mkdir -p /Users/rvalls/dev/personal/opencv] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐ Run Checkout Repo [Build OpenPnP OpenCV Distribution/build_linux_arm64] ✅ Success - Checkout Repo [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐ Run Setup JDK ${{ matrix.java }} INFO[0056] ☁ git clone 'https://github.com/actions/setup-java' # ref=v1 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker cp src=/Users/rvalls/.cache/act/actions-setup-java@v1/ dst=/var/run/act/actions/actions-setup-java@v1/ [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-java@v1/] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-java@v1/dist/setup/index.js] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::isExplicit: [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::explicit? false [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::evaluating 0 versions [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::match not found [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Downloading JDK from Azul [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Searching for files with extension: -linux_x64.tar.gz [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Downloading https://static.azul.com/zulu/bin/zulu15.34.17-ca-jdk15.0.4-linux_x64.tar.gz [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Downloading /tmp/dbfb7389-c202-4ce4-8c17-49a249612825 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::download complete | [command]/bin/tar --version | tar (GNU tar) 1.30 | Copyright (C) 2017 Free Software Foundation, Inc. | License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. | | Written by John Gilmore and Jay Fenlason. | [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/temp_399697964 -f /tmp/dbfb7389-c202-4ce4-8c17-49a249612825 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::jdk extracted to /tmp/temp_399697964/zulu15.34.17-ca-jdk15.0.4-linux_x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Caching tool jdk 15.0.4 x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::source dir: /tmp/temp_399697964/zulu15.34.17-ca-jdk15.0.4-linux_x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::destination /opt/hostedtoolcache/jdk/15.0.4/x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::finished caching tool [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⚙ ::set-output:: path=/opt/hostedtoolcache/jdk/15.0.4/x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⚙ ::set-output:: version=15.0.4 [Build OpenPnP OpenCV Distribution/build_linux_arm64] ❓ ##[add-matcher]/run/act/actions/actions-setup-java@v1/.github/java.json | creating settings.xml with server-id: github; environment variables: username=$GITHUB_ACTOR, password=$GITHUB_TOKEN, and gpg-passphrase=null [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::created directory /root/.m2 | writing /root/.m2/settings.xml [Build OpenPnP OpenCV Distribution/build_linux_arm64] ✅ Success - Setup JDK ${{ matrix.java }} [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐ Run Get Version Info [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /Users/rvalls/dev/personal/opencv/workflow/2] user= | /Users/rvalls/dev/personal/opencv/workflow/2: line 1: mvn: command not found | /Users/rvalls/dev/personal/opencv/workflow/2: line 2: mvn: command not found | /Users/rvalls/dev/personal/opencv/workflow/2: line 3: mvn: command not found [Build OpenPnP OpenCV Distribution/build_linux_arm64] ✅ Success - Get Version Info [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐ Run Build OpenCV on Arm64 INFO[0198] ☁ git clone 'https://github.com/uraimo/run-on-arch-action' # ref=v2.0.10 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker cp src=/Users/rvalls/.cache/act/uraimo-run-on-arch-action@v2.0.10/ dst=/var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/ [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[node /var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.js] user= | Configuring Docker for multi-architecture support | [command]/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh /run/act/actions/uraimo-run-on-arch-action@v2.0.10/Dockerfiles/Dockerfile.aarch64.ubuntu18.04 run-on-arch-brainstorm-opencv-build-openpnp-opencv-distribution-aarch64-ubuntu18-04 --volume ${PWD}/artifacts:/artifacts --volume ${PWD}:/host_repo | /run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh: line 38: sudo: command not found | /run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh: line 39: sudo: command not found | /run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh: line 40: docker: command not found [Build OpenPnP OpenCV Distribution/build_linux_arm64] ❗ ::error::The process '/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.sh' failed with exit code 127 [Build OpenPnP OpenCV Distribution/build_linux_arm64] ❌ Failure - Build OpenCV on Arm64 Error: exit with `FAILURE`: 1 ```
Author
Owner

@brainstorm commented on GitHub (Sep 28, 2021):

Huh, thanks!... I guess I'll be able to pull a refreshed image soon that fixes both the mvn and sudo/docker stuff, @catthehacker? Let me know if you need some testing from my side, happy to help!

<!-- gh-comment-id:928753321 --> @brainstorm commented on GitHub (Sep 28, 2021): Huh, thanks!... I guess I'll be able to pull a refreshed image soon that fixes both the `mvn` and sudo/docker stuff, @catthehacker? Let me know if you need some testing from my side, happy to help!
Author
Owner

@catthehacker commented on GitHub (Sep 28, 2021):

As long as you use image that includes all required software, it should work.

<!-- gh-comment-id:928913372 --> @catthehacker commented on GitHub (Sep 28, 2021): As long as you use image that includes all required software, it should work.
Author
Owner

@brainstorm commented on GitHub (Sep 28, 2021):

As long as you use image that includes all required software, it should work.

act -j build_linux_arm64 -P ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64

☝🏻 fails the same way (same with -full image variant of ubuntu-18.04... mvn is installed and works fine in GitHub Actions when I push changes):

| /Users/rvalls/dev/personal/opencv/workflow/2: line 1: mvn: command not found
| /Users/rvalls/dev/personal/opencv/workflow/2: line 2: mvn: command not found
| /Users/rvalls/dev/personal/opencv/workflow/2: line 3: mvn: command not found

I guess I should purge the ubuntu:runner-18.04 container and try again to pull in your new images/changes?

<!-- gh-comment-id:928949327 --> @brainstorm commented on GitHub (Sep 28, 2021): > As long as you use image that includes all required software, it should work. `act -j build_linux_arm64 -P ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64` ☝🏻 fails the same way (same with `-full` image variant of ubuntu-18.04... `mvn` is installed and works fine in GitHub Actions when I push changes): > | /Users/rvalls/dev/personal/opencv/workflow/2: line 1: mvn: command not found | /Users/rvalls/dev/personal/opencv/workflow/2: line 2: mvn: command not found | /Users/rvalls/dev/personal/opencv/workflow/2: line 3: mvn: command not found I guess I should purge the ubuntu:runner-18.04 container and try again to pull in your new images/changes?
Author
Owner

@catthehacker commented on GitHub (Sep 28, 2021):

act -j build_linux_arm64 -P ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64

proper command would be act -j build_linux_arm64 -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64

but from what I see, workflow is using ubuntu-latest so it should be -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:runner-18.04

<!-- gh-comment-id:928967854 --> @catthehacker commented on GitHub (Sep 28, 2021): > `act -j build_linux_arm64 -P ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64` proper command would be `act -j build_linux_arm64 -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64` but from what I see, workflow is using `ubuntu-latest` so it should be `-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:runner-18.04`
Author
Owner

@brainstorm commented on GitHub (Sep 28, 2021):

Thanks for the feedback @catthehacker, but I'm having the same issue mvn issue with your proposed cmdline...

(base) rvalls@m1 opencv % act -j build_linux_arm64 -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64
[Build OpenPnP OpenCV Distribution/build_linux_arm64] 🧪  Matrix: map[java:15 os:ubuntu-latest]
[Build OpenPnP OpenCV Distribution/build_linux_arm64] 🚀  Start image=ghcr.io/catthehacker/ubuntu:runner-18.04
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker run image=ghcr.io/catthehacker/ubuntu:runner-18.04 platform=linux/amd64 entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker cp src=/Users/rvalls/dev/personal/opencv/. dst=/Users/rvalls/dev/personal/opencv
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[mkdir -p /Users/rvalls/dev/personal/opencv] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐  Run Checkout Repo
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ✅  Success - Checkout Repo
[Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐  Run Setup JDK ${{ matrix.java }}
INFO[0010]   ☁  git clone 'https://github.com/actions/setup-java' # ref=v1
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker cp src=/Users/rvalls/.cache/act/actions-setup-java@v1/ dst=/var/run/act/actions/actions-setup-java@v1/
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-java@v1/] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-java@v1/dist/setup/index.js] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::isExplicit:
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::explicit? false
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::evaluating 0 versions
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::match not found
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Downloading JDK from Azul
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Searching for files with extension: -linux_x64.tar.gz
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Downloading https://static.azul.com/zulu/bin/zulu15.34.17-ca-jdk15.0.4-linux_x64.tar.gz
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Downloading /home/runner/work/_temp/05ee4302-b645-4941-adf6-f37f3d3a5403
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::download complete
| [command]/bin/tar --version
| tar (GNU tar) 1.29
| Copyright (C) 2015 Free Software Foundation, Inc.
| License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
|
| Written by John Gilmore and Jay Fenlason.
| [command]/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/temp_1577298562 -f /home/runner/work/_temp/05ee4302-b645-4941-adf6-f37f3d3a5403
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::jdk extracted to /home/runner/work/_temp/temp_1577298562/zulu15.34.17-ca-jdk15.0.4-linux_x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::Caching tool jdk 15.0.4 x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::source dir: /home/runner/work/_temp/temp_1577298562/zulu15.34.17-ca-jdk15.0.4-linux_x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::destination /opt/hostedtoolcache/jdk/15.0.4/x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::finished caching tool
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ⚙  ::set-output:: path=/opt/hostedtoolcache/jdk/15.0.4/x64
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ⚙  ::set-output:: version=15.0.4
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ❓  ##[add-matcher]/run/act/actions/actions-setup-java@v1/.github/java.json
| creating settings.xml with server-id: github; environment variables: username=$GITHUB_ACTOR, password=$GITHUB_TOKEN, and gpg-passphrase=null
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   💬  ::debug::created directory /home/runner/.m2
| writing /home/runner/.m2/settings.xml
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ✅  Success - Setup JDK ${{ matrix.java }}
[Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐  Run Get Version Info
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /Users/rvalls/dev/personal/opencv/workflow/2] user=
| /Users/rvalls/dev/personal/opencv/workflow/2: line 1: mvn: command not found
| /Users/rvalls/dev/personal/opencv/workflow/2: line 2: mvn: command not found
| /Users/rvalls/dev/personal/opencv/workflow/2: line 3: mvn: command not found
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ✅  Success - Get Version Info
[Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐  Run Build OpenCV on Arm64
INFO[0138]   ☁  git clone 'https://github.com/uraimo/run-on-arch-action' # ref=v2.0.10
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker cp src=/Users/rvalls/.cache/act/uraimo-run-on-arch-action@v2.0.10/ dst=/var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   🐳  docker exec cmd=[node /var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.js] user=
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ❗  ::error::EACCES: permission denied, open '/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch-setup.sh'
[Build OpenPnP OpenCV Distribution/build_linux_arm64]   ❌  Failure - Build OpenCV on Arm64
<!-- gh-comment-id:929084738 --> @brainstorm commented on GitHub (Sep 28, 2021): Thanks for the feedback @catthehacker, but I'm having the same issue `mvn` issue with your proposed cmdline... ``` (base) rvalls@m1 opencv % act -j build_linux_arm64 -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🧪 Matrix: map[java:15 os:ubuntu-latest] [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🚀 Start image=ghcr.io/catthehacker/ubuntu:runner-18.04 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker run image=ghcr.io/catthehacker/ubuntu:runner-18.04 platform=linux/amd64 entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker cp src=/Users/rvalls/dev/personal/opencv/. dst=/Users/rvalls/dev/personal/opencv [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[mkdir -p /Users/rvalls/dev/personal/opencv] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐ Run Checkout Repo [Build OpenPnP OpenCV Distribution/build_linux_arm64] ✅ Success - Checkout Repo [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐ Run Setup JDK ${{ matrix.java }} INFO[0010] ☁ git clone 'https://github.com/actions/setup-java' # ref=v1 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker cp src=/Users/rvalls/.cache/act/actions-setup-java@v1/ dst=/var/run/act/actions/actions-setup-java@v1/ [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-java@v1/] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-java@v1/dist/setup/index.js] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::isExplicit: [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::explicit? false [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::evaluating 0 versions [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::match not found [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Downloading JDK from Azul [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Searching for files with extension: -linux_x64.tar.gz [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Downloading https://static.azul.com/zulu/bin/zulu15.34.17-ca-jdk15.0.4-linux_x64.tar.gz [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Downloading /home/runner/work/_temp/05ee4302-b645-4941-adf6-f37f3d3a5403 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::download complete | [command]/bin/tar --version | tar (GNU tar) 1.29 | Copyright (C) 2015 Free Software Foundation, Inc. | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. | | Written by John Gilmore and Jay Fenlason. | [command]/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/temp_1577298562 -f /home/runner/work/_temp/05ee4302-b645-4941-adf6-f37f3d3a5403 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::jdk extracted to /home/runner/work/_temp/temp_1577298562/zulu15.34.17-ca-jdk15.0.4-linux_x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::Caching tool jdk 15.0.4 x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::source dir: /home/runner/work/_temp/temp_1577298562/zulu15.34.17-ca-jdk15.0.4-linux_x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::destination /opt/hostedtoolcache/jdk/15.0.4/x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::finished caching tool [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⚙ ::set-output:: path=/opt/hostedtoolcache/jdk/15.0.4/x64 [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⚙ ::set-output:: version=15.0.4 [Build OpenPnP OpenCV Distribution/build_linux_arm64] ❓ ##[add-matcher]/run/act/actions/actions-setup-java@v1/.github/java.json | creating settings.xml with server-id: github; environment variables: username=$GITHUB_ACTOR, password=$GITHUB_TOKEN, and gpg-passphrase=null [Build OpenPnP OpenCV Distribution/build_linux_arm64] 💬 ::debug::created directory /home/runner/.m2 | writing /home/runner/.m2/settings.xml [Build OpenPnP OpenCV Distribution/build_linux_arm64] ✅ Success - Setup JDK ${{ matrix.java }} [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐ Run Get Version Info [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /Users/rvalls/dev/personal/opencv/workflow/2] user= | /Users/rvalls/dev/personal/opencv/workflow/2: line 1: mvn: command not found | /Users/rvalls/dev/personal/opencv/workflow/2: line 2: mvn: command not found | /Users/rvalls/dev/personal/opencv/workflow/2: line 3: mvn: command not found [Build OpenPnP OpenCV Distribution/build_linux_arm64] ✅ Success - Get Version Info [Build OpenPnP OpenCV Distribution/build_linux_arm64] ⭐ Run Build OpenCV on Arm64 INFO[0138] ☁ git clone 'https://github.com/uraimo/run-on-arch-action' # ref=v2.0.10 [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker cp src=/Users/rvalls/.cache/act/uraimo-run-on-arch-action@v2.0.10/ dst=/var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/ [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] 🐳 docker exec cmd=[node /var/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch.js] user= [Build OpenPnP OpenCV Distribution/build_linux_arm64] ❗ ::error::EACCES: permission denied, open '/run/act/actions/uraimo-run-on-arch-action@v2.0.10/src/run-on-arch-setup.sh' [Build OpenPnP OpenCV Distribution/build_linux_arm64] ❌ Failure - Build OpenCV on Arm64 ```
Author
Owner

@catthehacker commented on GitHub (Sep 28, 2021):

That's because mvn is not installed in that image

<!-- gh-comment-id:929088728 --> @catthehacker commented on GitHub (Sep 28, 2021): That's because `mvn` is not installed in that image
Author
Owner

@brainstorm commented on GitHub (Apr 6, 2022):

That's because mvn is not installed in that image

Ok, is there an "official" act image that includesmvn or shall I just install it prior to running anything on it?

<!-- gh-comment-id:1089548894 --> @brainstorm commented on GitHub (Apr 6, 2022): > That's because `mvn` is not installed in that image Ok, is there an "official" `act` image that includes`mvn` or shall I just install it prior to running anything on it?
Author
Owner

@jamezp commented on GitHub (Jun 2, 2022):

Late reply, but @brainstorm yes if you use the "Full" image it will include Maven. That image is huge, but if you're a heavy Java/Maven user it's worth it. If you need to reset your original setting just delete or ~.actrc file or modify to something like:

-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-20.04
-P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:full-18.04
<!-- gh-comment-id:1145324545 --> @jamezp commented on GitHub (Jun 2, 2022): Late reply, but @brainstorm yes if you use the "Full" image it will include Maven. That image is huge, but if you're a heavy Java/Maven user it's worth it. If you need to reset your original setting just delete or `~.actrc` file or modify to something like: ``` -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-20.04 -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:full-18.04 ```
Author
Owner

@KnisterPeter commented on GitHub (Jun 2, 2022):

You can also create your own image to run act with which is not that huge or you can install the java version on demand.

<!-- gh-comment-id:1145326836 --> @KnisterPeter commented on GitHub (Jun 2, 2022): You can also create your own image to run act with which is not that huge or you can install the java version on demand.
Author
Owner

@brainstorm commented on GitHub (Jun 6, 2022):

Thanks @jamezp, unfortunately using that full container seems to miss other things, since I have to add the following for other steps to work properly for the native C/C++/Rust parts:

#### This step is only needed for GHA local runner, act:
# https://github.com/nektos/act
    steps:
      - name: Install curl (for nektos/act local CI testing)
        run: apt-get update && apt-get install build-essential curl pkg-config openssl -y
####
<!-- gh-comment-id:1147046462 --> @brainstorm commented on GitHub (Jun 6, 2022): Thanks @jamezp, unfortunately using that full container seems to miss other things, since I have to add the following for other steps to work properly for the native C/C++/Rust parts: ```yaml #### This step is only needed for GHA local runner, act: # https://github.com/nektos/act steps: - name: Install curl (for nektos/act local CI testing) run: apt-get update && apt-get install build-essential curl pkg-config openssl -y #### ```
Author
Owner

@jamezp commented on GitHub (Jun 6, 2022):

FWIW I created an image which adds Maven https://quay.io/repository/jamezp/act-maven.

<!-- gh-comment-id:1147627876 --> @jamezp commented on GitHub (Jun 6, 2022): FWIW I created an image which adds Maven https://quay.io/repository/jamezp/act-maven.
Author
Owner

@Weinell commented on GitHub (Nov 9, 2022):

FWIW I created an image which adds Maven https://quay.io/repository/jamezp/act-maven.

Omg, you are a god amongst men!

For anyone who is unsure on how to run the image - it took me a while to figure it out - then you have to run it like this:
act -P ubuntu-latest=quay.io/jamezp/act-maven

<!-- gh-comment-id:1309185945 --> @Weinell commented on GitHub (Nov 9, 2022): > FWIW I created an image which adds Maven https://quay.io/repository/jamezp/act-maven. Omg, you are a god amongst men! For anyone who is unsure on how to run the image - it took me a while to figure it out - then you have to run it like this: `act -P ubuntu-latest=quay.io/jamezp/act-maven`
Author
Owner

@bivashy commented on GitHub (Jun 28, 2024):

This doesn't work now, because Maven 3.6.3 binary corrupted/deleted.
Simply update Maven version to 3.9.8

      - name: Download Maven
        run: |
          curl -sL https://downloads.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.zip -o maven.zip
          apt-get update
          apt-get -y install unzip
          unzip -d /usr/share maven.zip
          rm maven.zip
          ln -s /usr/share/apache-maven-3.9.8/bin/mvn /usr/bin/mvn
          echo "M2_HOME=/usr/share/apache-maven-3.9.8" | tee -a /etc/environment
<!-- gh-comment-id:2197376079 --> @bivashy commented on GitHub (Jun 28, 2024): > - name: Download Maven > run: | > curl -sL https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip -o maven.zip > apt-get update > apt-get -y install unzip > unzip -d /usr/share maven.zip > rm maven.zip > ln -s /usr/share/apache-maven-3.6.3/bin/mvn /usr/bin/mvn > echo "M2_HOME=/usr/share/apache-maven-3.6.3" | tee -a /etc/environment This doesn't work now, because Maven `3.6.3` binary corrupted/deleted. Simply update Maven version to `3.9.8` ```yml - name: Download Maven run: | curl -sL https://downloads.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.zip -o maven.zip apt-get update apt-get -y install unzip unzip -d /usr/share maven.zip rm maven.zip ln -s /usr/share/apache-maven-3.9.8/bin/mvn /usr/bin/mvn echo "M2_HOME=/usr/share/apache-maven-3.9.8" | tee -a /etc/environment ```
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#105
No description provided.