Comments (6)
Please try to launch it in verbose mode or with a debug option, and add more details on the action you are trying to run.
There is not much to see in that log right now.
from run-on-arch-action.
@uraimo
Here is a part of the code responsible for building packages, release files and it fails here. Before this one compilation takes place which is compiling and have no issues with it. But cpack is another story here.
- name: Generate packages
shell: bash
working-directory: build/
run: cpack
I did runned cpack with both options --verbose
and --debug
Run cpack --verbose
CPack: Enable Verbose
CPack Verbose: Read CPack config file:
CPack Verbose: Read CPack configuration file: /home/runner/work/name/name/build/CPackConfig.cmake
CPack Verbose: Specified generator: TGZ
CPack Verbose: Use generator: cmCPackArchiveGenerator
CPack Verbose: For project: name
CPack: Create package using TGZ
CPack Verbose: [TGZ] requested component grouping = ONE_PER_GROUP
CPack: Install projects
CPack Error: Problem creating temporary directory: /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm/
CPack Error: Error when generating package: name
Error: Process completed with exit code 1.
Run cpack --debug
CPack: /builds/cmake ci/Source/CPack/cpack.cxx:202 Enable Debug
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_GENERATOR, TGZ)
CPack Error: /builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:201 Problem creating temporary directory: /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm/
CPack Error: /builds/cmake ci/Source/CPack/cpack.cxx:436 Error when generating package: name
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_PACKAGING_INSTALL_PREFIX, /)
CPack: /builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1038 Create package using TGZ
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:60 Create temp directory.
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_OUTPUT_FILE_PREFIX, /home/runner/work/name/name/build)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_TOPLEVEL_DIRECTORY, /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_TEMPORARY_DIRECTORY, /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_OUTPUT_FILE_NAME, name-arm.tar.gz)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_OUTPUT_FILE_PATH, /home/runner/work/name/name/build/name-arm.tar.gz)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_TEMPORARY_PACKAGE_FILE_NAME, /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm.tar.gz)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_INSTALL_DIRECTORY, /usr/local/)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_NATIVE_INSTALL_DIRECTORY, /usr/local/)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_TEMPORARY_INSTALL_DIRECTORY, /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:125 Look for: CPACK_PACKAGE_DESCRIPTION_FILE
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_PACKAGE_CHECKSUM
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_REMOVE_TOPLEVEL_DIRECTORY, 1)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_IGNORE_GROUPS
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_ONE_PACKAGE_PER_GROUP
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_GROUPING
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1066 About to install project
CPack: /builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:183 Install projects
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1320 GetPackagingInstallPrefix: '/'
Error: Process completed with exit code 1.
Only thing so far that brought my attention is this:
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_PACKAGE_CHECKSUM
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_REMOVE_TOPLEVEL_DIRECTORY, 1)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_IGNORE_GROUPS
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_ONE_PACKAGE_PER_GROUP
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_GROUPING
from run-on-arch-action.
Run cpack
CPack: Create package using TGZ
CPack: Install projects
CPack Error: Problem creating temporary directory: /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm/
CPack Error: Error when generating package: name
Error: Process completed with exit code 1.
@uraimo I have used NSIS + CPack + Qt + CMake + VS2019 in my own project and encountered the same problem as you, did you solve it later?
from run-on-arch-action.
I did small search in Cmake Source Code and found where it fails:
if (!cmsys::SystemTools::MakeDirectory(bareTempInstallDirectory)) {
cmCPackLogger(cmCPackLog::LOG_ERROR,
"Problem creating temporary directory: "
<< (tempInstallDirectory ? tempInstallDirectory : "(NULL)")
<< std::endl);
return 0;
}
Will have to dig deeper inside MakeDirectory
to find where it is failing at.
from run-on-arch-action.
After fiddling with github action script. I decided to run cpack with sudo command and as expected new issue came out of it.
Looks like it does not have issue with creating temp install directory
I did tried cat PreinstallOutput.log
file but it does not le me after this issue occur.
from run-on-arch-action.
@rafal1137 Thanks for your answer, it was a lot of fun 😄, maybe I can build it successfully locally first before trying GH Action.
PS:I will keep trying it when I get my PC (Win10) back in my hands a little later
from run-on-arch-action.
Related Issues (20)
- feature request: Firecracker VM support HOT 1
- can't use cargo in this action HOT 3
- nodejs cef build is failed HOT 1
- /root/run-on-arch-install.sh: not found HOT 5
- Multiple steps in a job HOT 7
- Support for actions steps instead of just shell commands HOT 1
- Error while setting up Go
- Failure to find and start dockers HOT 1
- The requested image's platform does not match the detected host platform HOT 1
- Need pinned Alpine Linux versions, e.g., v3.17 HOT 2
- not enough free disk space? HOT 4
- githubToken is required HOT 1
- Tag error for version 2.5.1 =>v.2.5.1 HOT 1
- Container always rebuilt HOT 2
- How can I copy files to host?
- Mounted Volume only gets updated after the `run` step completed HOT 1
- Using distrobuilder in ubuntu_latest on aarch64 will give an error( Failed to unshare namespaces: Operation not permitted ) HOT 2
- ::engroup::missing?
- Create new alpine targets, issue on alpine_latest distro. HOT 6
- Add support for ubuntu/i306
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from run-on-arch-action.