+
Skip to content

.net6 runtime and free cache naming #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM cwtools/cwtools-action:latest
FROM volgakurvar/cwtools-action:1.0.0-dotnet

COPY lib /action/lib

Expand Down
5 changes: 3 additions & 2 deletions lib/cwtools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
@CHANGED_ONLY = ENV["INPUT_CHANGEDFILESONLY"]
@CACHE_FULL = ENV["INPUT_CACHE"]
@VANILLA_MODE = ENV["INPUT_VANILLAMODE"]
@CACHE_FILE_NAME = ENV["CACHE_FILE_NAME"]

if @CW_CI_ENV == "github"
@CHANGED_ONLY = !(@CHANGED_ONLY == '0' || @CHANGED_ONLY == '')
Expand Down Expand Up @@ -192,8 +193,8 @@ def run_cwtools
`cwtools --game #{(@GAME == "stellaris") ? "stl" : @GAME} --directory "#{@CW_WORKSPACE}#{@MOD_PATH}" --cachefile "/#{(@GAME == "stellaris") ? "stl" : @GAME}.cwv.bz2" --rulespath "/src/cwtools-#{@GAME}-config" validate --cachetype metadata --reporttype json --scope mods --outputfile output.json --languages #{@LOC_LANGUAGES} all`
else
$stderr.puts "Full cache mode..."
$stderr.puts "cwtools --game #{(@GAME == "stellaris") ? "stl" : @GAME} --directory \"#{@CW_WORKSPACE}#{@MOD_PATH}\" --cachefile \"/#{(@GAME == "stellaris") ? "stl" : @GAME}.cwb.bz2\" --rulespath \"/src/cwtools-#{@GAME}-config\" validate --cachetype full --reporttype json --scope mods --outputfile output.json --languages #{@LOC_LANGUAGES} all"
`cwtools --game #{(@GAME == "stellaris") ? "stl" : @GAME} --directory "#{@CW_WORKSPACE}#{@MOD_PATH}" --cachefile "/#{(@GAME == "stellaris") ? "stl" : @GAME}.cwb.bz2" --rulespath "/src/cwtools-#{@GAME}-config" validate --cachetype full --reporttype json --scope mods --outputfile output.json --languages #{@LOC_LANGUAGES} all`
$stderr.puts "cwtools --game #{(@GAME == "stellaris") ? "stl" : @GAME} --directory \"#{@CW_WORKSPACE}#{@MOD_PATH}\" --cachefile \"/#{@CACHE_FILE_NAME}\" --rulespath \"/src/cwtools-#{@GAME}-config\" validate --cachetype full --reporttype json --scope mods --outputfile output.json --languages #{@LOC_LANGUAGES} all"
`cwtools --game #{(@GAME == "stellaris") ? "stl" : @GAME} --directory "#{@CW_WORKSPACE}#{@MOD_PATH}" --cachefile "/#{@CACHE_FILE_NAME}" --rulespath "/src/cwtools-#{@GAME}-config" validate --cachetype full --reporttype json --scope mods --outputfile output.json --languages #{@LOC_LANGUAGES} all`
end
errors = JSON.parse(`cat output.json`)
end
Expand Down
6 changes: 3 additions & 3 deletions lib/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ if [ -z "$INPUT_VANILLAMODE" ] || [ "$INPUT_VANILLAMODE" = "" ] || [ "$INPUT_VAN
mv -v cwtools-cache-files/$CWB_GAME.cwv.bz2 .
else
echo "Using full game cache from '$CW_WORKSPACE/$INPUT_CACHE'..."
mv -v $CW_WORKSPACE/$INPUT_CACHE .
mv -v $CW_WORKSPACE/$INPUT_CACHE /$CACHE_FILE_NAME

if [ ! -f "$CWB_GAME.cwb.bz2" ]; then
echo "$CWB_GAME.cwb.bz2 does not exist!"
if [ ! -f "$CACHE_FILE_NAME" ]; then
echo "$CACHE_FILE_NAME does not exist!"
exit 1
fi
fi
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载