+1
-1
nixos/modules/services/continuous-integration/github-runner/service.nix
+1
-1
nixos/modules/services/continuous-integration/github-runner/service.nix
···
+1
nixos/tests/all-tests.nix
+1
nixos/tests/all-tests.nix
···
+37
nixos/tests/github-runner.nix
+37
nixos/tests/github-runner.nix
···
+133
-228
pkgs/development/tools/continuous-integration/github-runner/default.nix
+133
-228
pkgs/development/tools/continuous-integration/github-runner/default.nix
······-"dotnet test Test/Test.csproj --filter '${lib.concatStringsSep "&" (map (x: "FullyQualifiedName!=${x}") disabledTests)}'"+LOCALE_ARCHIVE = lib.optionalString (!DOTNET_SYSTEM_GLOBALIZATION_INVARIANT) "${glibcLocales}/lib/locale/locale-archive";+dotnetFlags = [ "-p:PackageRuntime=${dotnetCorePackages.systemToDotnetRid stdenv.hostPlatform.system}" ];······+--replace 'ldd ./bin' '${glibc.bin}/bin/ldd ${dotnet-runtime}/shared/Microsoft.NETCore.App/${dotnet-runtime.version}/' \-substituteInPlace $out/lib/run.sh --replace 'cp -f "$DIR"/run-helper.sh.template "$DIR"/run-helper.sh' ' '+substituteInPlace $out/lib/github-runner/run.sh --replace 'cp -f "$DIR"/run-helper.sh.template "$DIR"/run-helper.sh' ' '-patchelf --replace-needed liblttng-ust.so.0 liblttng-ust.so $out/lib/libcoreclrtraceptprovider.so-dotnet restore src/ActionsRunner.sln --packages nuget_pkgs --no-cache --force --runtime "${rid}"
+3
pkgs/development/tools/continuous-integration/github-runner/deps.nix
+3
pkgs/development/tools/continuous-integration/github-runner/deps.nix
···(fetchNuGet { pname = "Castle.Core"; version = "4.4.0"; sha256 = "0rpcbmyhckvlvp6vbzpj03c1gqz56ixc6f15vgmxmyf1g40c24pf"; })
-45
pkgs/development/tools/continuous-integration/github-runner/patches/dir-proj.patch
-45
pkgs/development/tools/continuous-integration/github-runner/patches/dir-proj.patch
···-<Message Text="Building $(Product): $(GitInfoCommitHash) --- $(PackageRuntime)" Importance="high"/>-<MSBuild Targets="Publish" Projects="@(ProjectFiles)" BuildInParallel="false" StopOnFirstFailure="true" Properties="Configuration=$(BUILDCONFIG);PackageRuntime=$(PackageRuntime);Version=$(RunnerVersion);RuntimeIdentifier=$(PackageRuntime);PublishDir=$(MSBuildProjectDirectory)/../_layout/bin" />-<Exec Command="%22$(DesktopMSBuild)%22 Runner.Service/Windows/RunnerService.csproj /p:Configuration=$(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime) /p:OutputPath=%22$(MSBuildProjectDirectory)/../_layout/bin%22" ConsoleToMSBuild="true" Condition="'$(PackageRuntime)' == 'win-x64' Or '$(PackageRuntime)' == 'win-x86' Or '$(PackageRuntime)' == 'win-arm64'" />-- <Exec Command="dotnet build Test/Test.csproj -c $(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime)" ConsoleToMSBuild="true" />-- <Exec Command="dotnet test Test/Test.csproj -c $(BUILDCONFIG) --no-build --logger:trx" ConsoleToMSBuild="true" />-+ <Exec Command="dotnet build Test/Test.csproj --no-restore -c $(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime)" ConsoleToMSBuild="true" />-+ <Exec Command="dotnet test Test/Test.csproj --no-restore -c $(BUILDCONFIG) --no-build --logger:trx" ConsoleToMSBuild="true" />
+28
pkgs/development/tools/continuous-integration/github-runner/patches/dont-install-service.patch
+28
pkgs/development/tools/continuous-integration/github-runner/patches/dont-install-service.patch
···+diff --git a/src/Runner.Listener/Configuration/ConfigurationManager.cs b/src/Runner.Listener/Configuration/ConfigurationManager.cs+- // generate service config script for OSX and Linux, GenerateScripts() will no-opt on windows.
-15
pkgs/development/tools/continuous-integration/github-runner/patches/dont-install-systemd-service.patch
-15
pkgs/development/tools/continuous-integration/github-runner/patches/dont-install-systemd-service.patch
···-diff --git a/src/Runner.Listener/Configuration/ConfigurationManager.cs b/src/Runner.Listener/Configuration/ConfigurationManager.cs-- // generate service config script for OSX and Linux, GenerateScripts() will no-opt on windows.
+76
pkgs/development/tools/continuous-integration/github-runner/patches/env-sh-use-runner-root.patch
+76
pkgs/development/tools/continuous-integration/github-runner/patches/env-sh-use-runner-root.patch
···+# for more info on how to propagate SIGTERM to a child process see: http://veithen.github.io/2014/11/16/sigterm-propagation.html++ var rootDir = Environment.GetEnvironmentVariable("RUNNER_ROOT") ?? new DirectoryInfo(binDir).Parent.FullName;
+19
pkgs/development/tools/continuous-integration/github-runner/update.sh
+19
pkgs/development/tools/continuous-integration/github-runner/update.sh
···+currentVersion="$(nix --extra-experimental-features nix-command eval -f . github-runner.version --raw)"