cachix / install-nix-action

Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.
Apache License 2.0
513 stars 79 forks source link

Test for act #111

Closed domenkozar closed 2 years ago

catthehacker commented 2 years ago

mhm, this will also fail since GHA runners don't have enough space for that image (full-20.04 is +40GB)

domenkozar commented 2 years ago

What's an image that would fit?

On Wed, Nov 17, 2021, 15:32 Ryan @.***> wrote:

mhm, this will also fail since GHA runners don't have enough space for that image (full-20.04 is +40GB)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cachix/install-nix-action/pull/111#issuecomment-972067617, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA63A35MNECY2ZHJHKPAXTUMQNPLANCNFSM5IBZBDAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

catthehacker commented 2 years ago

well, there you go, (act) works :)

domenkozar commented 2 years ago

thanks a lot @catthehacker

domenkozar commented 2 years ago

@catthehacker does act respect GITHUB_ENV? It doesn't seem to be setting $PATH

catthehacker commented 2 years ago

It does and $NIX_PATH seems to be in $GITHUB_ENV but it's not present at any stage in environment

~/install-nix-action act ❯ docker exec -ti act-install-nix-action-test-simple-build-1 /bin/bash
root@alpine-vm:/home/cat/install-nix-action# cat /var/run/act/workflow/envs.txt
NIX_PATH=nixpkgs=channel:nixos-20.03
catthehacker commented 2 years ago

At what point NIX_PATH is added to $GITHUB_ENV ? Forgot I can check GitHub Actions run

catthehacker commented 2 years ago

oh well, that 2nd = messes up everything that's a bug in act

catthehacker commented 2 years ago

@domenkozar should be working fine now