nuke-build / nuke

🏗 The AKEless Build System for C#/.NET
https://nuke.build
MIT License
3.07k stars 367 forks source link

GitHub action using Ubuntu fails #1426

Closed sonomirco closed 2 months ago

sonomirco commented 2 months ago

Usage Information

NUKE 8.0.0 / net8.0 / Windows

Description

Using Ubuntu, I have permission denied by NUKE.

image

As you can see from the image, the process doesn't even start.

Reproduction Steps

jobs: setup: runs-on: ubuntu-latest steps:

Expected Behavior

Building Nuke as expected.

Actual Behavior

I have a permission denied error.

Regression?

No response

Known Workarounds

No response

Could you help with a pull-request?

No

lahma commented 2 months ago

Ubuntu is a Linux system, build.cmd is a Windows command. Use build.sh and ensure you have correct line endings in your repository.

matkoch commented 2 months ago

@lahma build.cmd can work crossplatform

@sonomirco you've committed those files without execution permission. not a bug.

sonomirco commented 2 months ago

@matkoch Are you talking about GitHub permissions? Because if I use Windows-latest build.cmd works without any permission request.

matkoch commented 2 months ago

File execution permissions (chmod +x) on Git.

sonomirco commented 2 months ago

Probably worth adding this to the documentation 😉.

https://blog.dangl.me/archive/executing-nuke-build-scripts-on-linux-machines-with-correct-file-permissions/

matkoch commented 2 months ago

This issue is easy to find and is not specific to the project.

https://github.com/orgs/community/discussions/26239

2024-09-22-Arc-github actions permission denied-005082

Moreover, the setup does exactly that. You must have made revert/reset operations after the setup.

sonomirco commented 2 months ago

Moreover, the setup does exactly that. You must have made revert/reset operations after the setup. No, I didn’t, but thanks for the information. 👍