diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 37b5780..64c5696 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,7 @@ image: mcr.microsoft.com/dotnet/sdk:latest # variables: # 1) Name of directory where restore and build objects are stored. - OBJECTS_DIRECTORY: 'IdeologyAddon/obj' + OBJECTS_DIRECTORY: 'obj' # 2) Name of directory used for keeping restored dependencies. NUGET_PACKAGES_DIRECTORY: '.nuget' # 3) A relative path to the source code from project repository root. @@ -85,13 +85,22 @@ cache: # Learn more about GitLab cache: https://docs.gitlab.com/ee/ci/caching/index.html before_script: - 'cd $SOURCE_CODE_PATH' - - 'dotnet restore --packages ../$NUGET_PACKAGES_DIRECTORY' + - 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY' build: stage: build # ### Build all projects discovered from solution file. + # + # Note: this will fail if you have any projects in your solution that are not + # .NET Core-based projects (e.g. WCF service), which is based on .NET Framework, + # not .NET Core. In this scenario, you will need to build every .NET Core-based + # project by explicitly specifying a relative path to the directory + # where it is located (e.g. 'dotnet build ./src/ConsoleApp'). + # Only one project path can be passed as a parameter to 'dotnet build' command. script: - - 'curl -s --create-dirs "$RJW_DLL_URL" -o ../../rjw/$RIMWORLD_VERSION/Assemblies/RJW.dll' + - 'ls -l ../../../rjw/1.5/Assemblies/RJW.dll' + - 'curl --create-dirs "https://gitgud.io/jikulopo/rjw/-/raw/1.5-test/1.5/Assemblies/RJW.dll" -o ../../../rjw/1.5/Assemblies/RJW.dll' + - 'ls -l ../../../rjw/1.5/Assemblies/RJW.dll' - 'dotnet build --no-restore' #tests: