[GH-ISSUE #1479] Unable to apt-get install some dependencies on Ubuntu #758

Closed
opened 2026-03-01 21:46:08 +03:00 by kerem · 1 comment
Owner

Originally created by @andrewdavidmackenzie on GitHub (Nov 28, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1479

Bug report info

❯ act --bug-report
act version:            0.2.33
GOOS:                   darwin
GOARCH:                 amd64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
        /var/run/docker.sock
        /Users/andrew/.docker/run/docker.sock
Config files:           
        /Users/andrew/.actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.19.3
        Module path:           command-line-arguments
        Main version:          
        Main path:             
        Main checksum:         
        Build settings:
                -compiler:            gc
                -ldflags:             -X main.version=0.2.33
                CGO_ENABLED:          1
                CGO_CFLAGS:           
                CGO_CPPFLAGS:         
                CGO_CXXFLAGS:         
                CGO_LDFLAGS:          
                GOARCH:               amd64
                GOOS:                 darwin
                GOAMD64:              v1
Docker Engine:
        Engine version:        20.10.14
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:            
        OS arch:               x86_64
        OS kernel:             5.10.104-linuxkit
        OS CPU:                4
        OS memory:             11980 MB
        Security options:
                name=seccomp,profile=default
                name=cgroupns

Command used with act

act

Describe issue

In this workflow

I have a step to install some required dependencies:

    - name: InstallLinuxDependencies
      if: matrix.os == 'ubuntu-latest'
      run: sudo apt-get -y install libzmq3-dev binaryen

Which causes this error output:

⭐ Run Main InstallLinuxDependencies
[Rust/build-2]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/4] user= workdir=
Reading package lists... Done
Building dependency tree       
Reading state information... Done
| E: Unable to locate package libzmq3-dev
| E: Unable to locate package binaryen
[Rust/build-2]   ❌  Failure - Main InstallLinuxDependencies
[Rust/build-2] exitcode '100': failure
[Rust/build-2] 🏁  Job failed
Error: Job 'build' failed

### Link to GitHub repository

https://github.com/andrewdavidmackenzie/flow

### Workflow content

```yml
name: Rust

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  schedule: # Build every day at 5PM UTC
    - cron: '0 17 * * *'

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
          os: [ macos-latest, ubuntu-latest ]
          rust: [ stable ]

    steps:
    - uses: actions/checkout@v2

    - name: SetupFlowLibPath
      run: echo "FLOW_LIB_PATH=$GITHUB_WORKSPACE/target" >> "$GITHUB_ENV"

    - name: Install latest nightly
      uses: actions-rs/toolchain@v1
      with:
        profile: minimal
        toolchain: nightly
        override: true
        components: clippy

    - name: Cargo Cache
      uses: actions/cache@v1
      with:
        path: |
          ~/.cargo
          target/
        key: ${{ runner.os }}-cargo_cache-${{ hashFiles('Cargo.toml') }}
        restore-keys: |
          ${{ runner.os }}-cargo_cache-${{ hashFiles('Cargo.toml') }}
          ${{ runner.os }}-cargo_cache-

    - name: InstallLinuxDependencies
      if: matrix.os == 'ubuntu-latest'
      run: sudo apt-get -y install libzmq3-dev binaryen

    - name: InstallMacDependencies
      if: matrix.os == 'macos-latest'
      run: brew install zmq binaryen

    - name: AddWasmTarget
      run: rustup target add wasm32-unknown-unknown

    - name: InstallWasmTools
      run: cargo install wasm-gc wasm-snip

    - name: ConfigureCoverage
      if: matrix.os == 'ubuntu-latest'
      run: |
        echo RUSTC_BOOTSTRAP=1 >> "$GITHUB_ENV" # Enables -Z in stable
        cargo install grcov
        rustup component add llvm-tools-preview
        echo RUSTFLAGS="-C instrument-coverage" >> "$GITHUB_ENV"
        echo LLVM_PROFILE_FILE="flow-%p-%m.profraw" >> "$GITHUB_ENV"

    - name: install-flowc
      run: cargo install --path flowc

    - name: install-flowr
      run: cargo install --path flowr

    - name: install-flowrex
      run: cargo install --path flowrex

    - name: clippy
      run: cargo clippy --tests -- -D warnings

    - name: build
      run: cargo build --features "wasm"

    - name: test
      run: cargo test --features "online_tests","wasm"

    - name: docs
      if: matrix.os == 'ubuntu-latest'
      run: |
        sudo apt-get -y install graphviz
        cargo install mdbook
        cargo install mdbook-linkcheck
        make docs

    - name: UploadCoverage
      if: matrix.os == 'ubuntu-latest'
      run: |
        grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
        bash <(curl -s https://codecov.io/bash) -f lcov.info
        rm -f lcov.info

    - name: DeployDocsToGHPages
      uses: JamesIves/github-pages-deploy-action@4.1.4
      if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master'
      with:
        branch: gh-pages
        folder: target/html

Relevant log output

Github gave me an error that comment was too long, so I truncated this and left the *end* of it. I wasn't sure where was a good place to cut it, so if you lack info, let me know and I can share the full log in a gist or something.

[Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c'
[Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CARGO_TERM_COLOR:always CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner FLOW_LIB_PATH:/Users/andrew/workspace/flow/target GITHUB_ACTION:17 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:4.1.4 GITHUB_ACTION_REPOSITORY:JamesIves/github-pages-deploy-action GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/flow-1561 GITHUB_REF_NAME:flow-1561 GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:andrewdavidmackenzie/flow GITHUB_REPOSITORY_OWNER:andrewdavidmackenzie GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:89d589e14e9e46326c42d736b7ff520f4dbd519c GITHUB_TOKEN: GITHUB_WORKFLOW:Rust GITHUB_WORKSPACE:/Users/andrew/workspace/flow IMAGE_OS:ubuntu20 INPUT_BRANCH:gh-pages INPUT_FOLDER:target/html ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/root/.cargo/bin:/opt/hostedtoolcache/node/16.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c'
[Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c'
[Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] evaluating expression 'matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master''
[Rust/build-2] [DEBUG] expression 'matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master'' evaluated to 'false'
[Rust/build-2] [DEBUG] Skipping step 'DeployDocsToGHPages' due to 'matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master''
[Rust/build-2] [DEBUG] skipping post step for 'DeployDocsToGHPages'; main step was skipped
[Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c'
[Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] expression '${{ matrix.os }}' rewritten to 'format('{0}', matrix.os)'
[Rust/build-2] [DEBUG] evaluating expression 'format('{0}', matrix.os)'
[Rust/build-2] [DEBUG] expression 'format('{0}', matrix.os)' evaluated to '%!t(string=ubuntu-latest)'
[Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c'
[Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] expression '${{ runner.os }}-cargo_cache-${{ hashFiles('Cargo.toml') }}
${{ runner.os }}-cargo_cache-
' rewritten to 'format('{0}-cargo_cache-{1}
{2}-cargo_cache-
', runner.os, hashFiles('Cargo.toml'), runner.os)'
[Rust/build-2] [DEBUG] evaluating expression 'format('{0}-cargo_cache-{1}
{2}-cargo_cache-
', runner.os, hashFiles('Cargo.toml'), runner.os)'
[Rust/build-2] [DEBUG] expression 'format('{0}-cargo_cache-{1}
{2}-cargo_cache-
', runner.os, hashFiles('Cargo.toml'), runner.os)' evaluated to '%!t(string=Linux-cargo_cache-259ff93b6f67e2943781fa7433685604d3a0e8d9e9695836d8de63168c63a5be
Linux-cargo_cache-
)'
[Rust/build-2] [DEBUG] expression '${{ runner.os }}-cargo_cache-${{ hashFiles('Cargo.toml') }}' rewritten to 'format('{0}-cargo_cache-{1}', runner.os, hashFiles('Cargo.toml'))'
[Rust/build-2] [DEBUG] evaluating expression 'format('{0}-cargo_cache-{1}', runner.os, hashFiles('Cargo.toml'))'
[Rust/build-2] [DEBUG] expression 'format('{0}-cargo_cache-{1}', runner.os, hashFiles('Cargo.toml'))' evaluated to '%!t(string=Linux-cargo_cache-259ff93b6f67e2943781fa7433685604d3a0e8d9e9695836d8de63168c63a5be)'
[Rust/build-2] [DEBUG] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CARGO_TERM_COLOR:always CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner FLOW_LIB_PATH:/Users/andrew/workspace/flow/target GITHUB_ACTION:post-3 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v1 GITHUB_ACTION_REPOSITORY:actions/cache GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/flow-1561 GITHUB_REF_NAME:flow-1561 GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:andrewdavidmackenzie/flow GITHUB_REPOSITORY_OWNER:andrewdavidmackenzie GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:89d589e14e9e46326c42d736b7ff520f4dbd519c GITHUB_TOKEN: GITHUB_WORKFLOW:Rust GITHUB_WORKSPACE:/Users/andrew/workspace/flow IMAGE_OS:ubuntu20 INPUT_KEY:Linux-cargo_cache-259ff93b6f67e2943781fa7433685604d3a0e8d9e9695836d8de63168c63a5be INPUT_PATH:~/.cargo
target/
 INPUT_RESTORE-KEYS:Linux-cargo_cache-259ff93b6f67e2943781fa7433685604d3a0e8d9e9695836d8de63168c63a5be
Linux-cargo_cache-
 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/root/.cargo/bin:/opt/hostedtoolcache/node/16.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c'
[Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c'
[Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] evaluating expression 'success()'
[Rust/build-2] [DEBUG] expression 'success()' evaluated to 'false'
[Rust/build-2] [DEBUG] Skipping step 'Cargo Cache' due to 'success()'
[Rust/build-2] [DEBUG] skipping post step for 'actions/checkout@v2': no action model available
[Rust/build-2] 🏁  Job failed
[Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git'
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
[Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c'
[Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561
[Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c
Error: Job 'build' failed

Additional information

I chose the medium image when installing, as I assumed even the large image would probably not have some of the esoteric dependencies I need, and that this step would install them OK.

Originally created by @andrewdavidmackenzie on GitHub (Nov 28, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1479 ### Bug report info ```plain text ❯ act --bug-report act version: 0.2.33 GOOS: darwin GOARCH: amd64 NumCPU: 12 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock /Users/andrew/.docker/run/docker.sock Config files: /Users/andrew/.actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.19.3 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -compiler: gc -ldflags: -X main.version=0.2.33 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: amd64 GOOS: darwin GOAMD64: v1 Docker Engine: Engine version: 20.10.14 Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: x86_64 OS kernel: 5.10.104-linuxkit OS CPU: 4 OS memory: 11980 MB Security options: name=seccomp,profile=default name=cgroupns ``` ### Command used with act ```sh act ``` ### Describe issue In [this workflow](https://github.com/andrewdavidmackenzie/flow/blob/master/.github/workflows/rust.yml) I have a step to install some required dependencies: ``` - name: InstallLinuxDependencies if: matrix.os == 'ubuntu-latest' run: sudo apt-get -y install libzmq3-dev binaryen ``` Which causes this error output: ``` ⭐ Run Main InstallLinuxDependencies [Rust/build-2] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/4] user= workdir= Reading package lists... Done Building dependency tree Reading state information... Done | E: Unable to locate package libzmq3-dev | E: Unable to locate package binaryen [Rust/build-2] ❌ Failure - Main InstallLinuxDependencies [Rust/build-2] exitcode '100': failure [Rust/build-2] 🏁 Job failed Error: Job 'build' failed ### Link to GitHub repository https://github.com/andrewdavidmackenzie/flow ### Workflow content ```yml name: Rust on: push: branches: [ master ] pull_request: branches: [ master ] schedule: # Build every day at 5PM UTC - cron: '0 17 * * *' env: CARGO_TERM_COLOR: always jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ macos-latest, ubuntu-latest ] rust: [ stable ] steps: - uses: actions/checkout@v2 - name: SetupFlowLibPath run: echo "FLOW_LIB_PATH=$GITHUB_WORKSPACE/target" >> "$GITHUB_ENV" - name: Install latest nightly uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: nightly override: true components: clippy - name: Cargo Cache uses: actions/cache@v1 with: path: | ~/.cargo target/ key: ${{ runner.os }}-cargo_cache-${{ hashFiles('Cargo.toml') }} restore-keys: | ${{ runner.os }}-cargo_cache-${{ hashFiles('Cargo.toml') }} ${{ runner.os }}-cargo_cache- - name: InstallLinuxDependencies if: matrix.os == 'ubuntu-latest' run: sudo apt-get -y install libzmq3-dev binaryen - name: InstallMacDependencies if: matrix.os == 'macos-latest' run: brew install zmq binaryen - name: AddWasmTarget run: rustup target add wasm32-unknown-unknown - name: InstallWasmTools run: cargo install wasm-gc wasm-snip - name: ConfigureCoverage if: matrix.os == 'ubuntu-latest' run: | echo RUSTC_BOOTSTRAP=1 >> "$GITHUB_ENV" # Enables -Z in stable cargo install grcov rustup component add llvm-tools-preview echo RUSTFLAGS="-C instrument-coverage" >> "$GITHUB_ENV" echo LLVM_PROFILE_FILE="flow-%p-%m.profraw" >> "$GITHUB_ENV" - name: install-flowc run: cargo install --path flowc - name: install-flowr run: cargo install --path flowr - name: install-flowrex run: cargo install --path flowrex - name: clippy run: cargo clippy --tests -- -D warnings - name: build run: cargo build --features "wasm" - name: test run: cargo test --features "online_tests","wasm" - name: docs if: matrix.os == 'ubuntu-latest' run: | sudo apt-get -y install graphviz cargo install mdbook cargo install mdbook-linkcheck make docs - name: UploadCoverage if: matrix.os == 'ubuntu-latest' run: | grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info bash <(curl -s https://codecov.io/bash) -f lcov.info rm -f lcov.info - name: DeployDocsToGHPages uses: JamesIves/github-pages-deploy-action@4.1.4 if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master' with: branch: gh-pages folder: target/html ``` ### Relevant log output ```sh Github gave me an error that comment was too long, so I truncated this and left the *end* of it. I wasn't sure where was a good place to cut it, so if you lack info, let me know and I can share the full log in a gist or something. [Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c' [Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561 [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CARGO_TERM_COLOR:always CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner FLOW_LIB_PATH:/Users/andrew/workspace/flow/target GITHUB_ACTION:17 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:4.1.4 GITHUB_ACTION_REPOSITORY:JamesIves/github-pages-deploy-action GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/flow-1561 GITHUB_REF_NAME:flow-1561 GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:andrewdavidmackenzie/flow GITHUB_REPOSITORY_OWNER:andrewdavidmackenzie GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:89d589e14e9e46326c42d736b7ff520f4dbd519c GITHUB_TOKEN: GITHUB_WORKFLOW:Rust GITHUB_WORKSPACE:/Users/andrew/workspace/flow IMAGE_OS:ubuntu20 INPUT_BRANCH:gh-pages INPUT_FOLDER:target/html ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/root/.cargo/bin:/opt/hostedtoolcache/node/16.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c' [Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561 [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c' [Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561 [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] evaluating expression 'matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master'' [Rust/build-2] [DEBUG] expression 'matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master'' evaluated to 'false' [Rust/build-2] [DEBUG] Skipping step 'DeployDocsToGHPages' due to 'matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master'' [Rust/build-2] [DEBUG] skipping post step for 'DeployDocsToGHPages'; main step was skipped [Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c' [Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561 [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] expression '${{ matrix.os }}' rewritten to 'format('{0}', matrix.os)' [Rust/build-2] [DEBUG] evaluating expression 'format('{0}', matrix.os)' [Rust/build-2] [DEBUG] expression 'format('{0}', matrix.os)' evaluated to '%!t(string=ubuntu-latest)' [Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c' [Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561 [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] expression '${{ runner.os }}-cargo_cache-${{ hashFiles('Cargo.toml') }} ${{ runner.os }}-cargo_cache- ' rewritten to 'format('{0}-cargo_cache-{1} {2}-cargo_cache- ', runner.os, hashFiles('Cargo.toml'), runner.os)' [Rust/build-2] [DEBUG] evaluating expression 'format('{0}-cargo_cache-{1} {2}-cargo_cache- ', runner.os, hashFiles('Cargo.toml'), runner.os)' [Rust/build-2] [DEBUG] expression 'format('{0}-cargo_cache-{1} {2}-cargo_cache- ', runner.os, hashFiles('Cargo.toml'), runner.os)' evaluated to '%!t(string=Linux-cargo_cache-259ff93b6f67e2943781fa7433685604d3a0e8d9e9695836d8de63168c63a5be Linux-cargo_cache- )' [Rust/build-2] [DEBUG] expression '${{ runner.os }}-cargo_cache-${{ hashFiles('Cargo.toml') }}' rewritten to 'format('{0}-cargo_cache-{1}', runner.os, hashFiles('Cargo.toml'))' [Rust/build-2] [DEBUG] evaluating expression 'format('{0}-cargo_cache-{1}', runner.os, hashFiles('Cargo.toml'))' [Rust/build-2] [DEBUG] expression 'format('{0}-cargo_cache-{1}', runner.os, hashFiles('Cargo.toml'))' evaluated to '%!t(string=Linux-cargo_cache-259ff93b6f67e2943781fa7433685604d3a0e8d9e9695836d8de63168c63a5be)' [Rust/build-2] [DEBUG] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CARGO_TERM_COLOR:always CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner FLOW_LIB_PATH:/Users/andrew/workspace/flow/target GITHUB_ACTION:post-3 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v1 GITHUB_ACTION_REPOSITORY:actions/cache GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/flow-1561 GITHUB_REF_NAME:flow-1561 GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:andrewdavidmackenzie/flow GITHUB_REPOSITORY_OWNER:andrewdavidmackenzie GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:89d589e14e9e46326c42d736b7ff520f4dbd519c GITHUB_TOKEN: GITHUB_WORKFLOW:Rust GITHUB_WORKSPACE:/Users/andrew/workspace/flow IMAGE_OS:ubuntu20 INPUT_KEY:Linux-cargo_cache-259ff93b6f67e2943781fa7433685604d3a0e8d9e9695836d8de63168c63a5be INPUT_PATH:~/.cargo target/ INPUT_RESTORE-KEYS:Linux-cargo_cache-259ff93b6f67e2943781fa7433685604d3a0e8d9e9695836d8de63168c63a5be Linux-cargo_cache- ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/root/.cargo/bin:/opt/hostedtoolcache/node/16.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c' [Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561 [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c' [Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561 [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] evaluating expression 'success()' [Rust/build-2] [DEBUG] expression 'success()' evaluated to 'false' [Rust/build-2] [DEBUG] Skipping step 'Cargo Cache' due to 'success()' [Rust/build-2] [DEBUG] skipping post step for 'actions/checkout@v2': no action model available [Rust/build-2] 🏁 Job failed [Rust/build-2] [DEBUG] Loading slug from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Loading revision from git directory '/Users/andrew/workspace/flow/.git' [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c [Rust/build-2] [DEBUG] HEAD points to '89d589e14e9e46326c42d736b7ff520f4dbd519c' [Rust/build-2] [DEBUG] using github ref: refs/heads/flow-1561 [Rust/build-2] [DEBUG] Found revision: 89d589e14e9e46326c42d736b7ff520f4dbd519c Error: Job 'build' failed ``` ### Additional information I chose the medium image when installing, as I assumed even the large image would probably not have some of the esoteric dependencies I need, and that this step would install them OK.
kerem 2026-03-01 21:46:08 +03:00
Author
Owner

@KnisterPeter commented on GitHub (Nov 28, 2022):

You need to apt-get update before.
It's related to debian and has nothing to do with act.

<!-- gh-comment-id:1329193697 --> @KnisterPeter commented on GitHub (Nov 28, 2022): You need to `apt-get update` before. It's related to debian and has nothing to do with `act`.
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#758
No description provided.