diff --git a/.github/workflows/build-sm64.yml b/.github/workflows/build-sm64.yml index 35cb5f1..cf41ca5 100644 --- a/.github/workflows/build-sm64.yml +++ b/.github/workflows/build-sm64.yml @@ -18,7 +18,13 @@ jobs: # Install Nix as a daemon sh <(curl -L https://nixos.org/nix/install) --daemon - # Source the correct profile + # Source the correct profile and set up environment variables + NIX_LINK=$HOME/.nix-profile + export NIX_PROFILES="/nix/var/nix/profiles/default:$NIX_LINK" + export XDG_DATA_DIRS="/usr/local/share:/usr/share:$NIX_LINK/share:/nix/var/nix/profiles/default/share" + export PATH="$NIX_LINK/bin:/nix/var/nix/profiles/default/bin:$PATH" + + # Source nix.sh to update the environment . /home/runner/.nix-profile/etc/profile.d/nix.sh # Install Devenv