Skip to content

Unable to run spec with Github Actions  #12369

Open
@kalinon

Description

@kalinon

Bug Report

When preparing for my next release of the kube-client.cr i am unable to run crystal spec in github actions due to the following error:

cc: error: N-amedT-uple40spe-7d7e8234f0de678a2b8c7d292c4c5492.o: No such file or directory
Error: execution of command failed with code: 1: `cc "${@}" -o /home/runner/.cache/crystal/crystal-run-spec.tmp  -rdynamic -L/home/runner/work/_temp/crystal-1.5-true-undefined/bin/../lib/crystal -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lyaml -lxml2 -lpcre -lm -lgc -lpthread -levent -lrt -lpthread -ldl`
Error: Process completed with exit code 1.

I've truncated the list of No such file or directory errors thrown. You can see the full output

Successful action run on master: https://github.com/spoved/kube-client.cr/actions/runs/2819264691
Failed action on v0.4.5: https://github.com/spoved/kube-client.cr/runs/7708870098?check_suite_focus=true

Here is the PR with reproducible code and changes that may cause the issue: spoved/kube-client.cr#10

Both runs used the same crystal version:

shards --version

Shards 0.17.0 [85b30b5] (2022-03-24)

crystal --version
Crystal 1.4.0 [ef05e26d6] (2022-04-06)

LLVM: 10.0.0
Default target: x86_64-unknown-linux-gnu

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugA bug in the code. Does not apply to documentation, specs, etc.topic:infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions