Skip to content

Commit

Permalink
Enable build cache in containers
Browse files Browse the repository at this point in the history
  • Loading branch information
voidedWarranties committed Jul 29, 2023
1 parent c906639 commit 1cad039
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build_containers/build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
4 changes: 3 additions & 1 deletion build_containers/build_gls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ popd
# Build
podman_run() {
podman run -it --rm -v ./files:/root/files:z,ro -v ./out:/root/out:z \
-v "./build_scripts/$1.sh":/root/build.sh "gls-$1":$tag ./build.sh
-v "./build_scripts/$1.sh":/root/build.sh:ro \
-v ./build:/root/build:z \
"gls-$1":$tag ./build.sh
}

for arg in "$@"
Expand Down
1 change: 1 addition & 0 deletions build_containers/build_scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ cd godot-luau-script

scons_opts_base="platform=linux arch=x86_64 use_llvm=yes"

export SCONS_CACHE=/root/build/linux
scons target=editor $scons_opts_base
scons target=template_release $scons_opts_base

Expand Down
1 change: 1 addition & 0 deletions build_containers/build_scripts/macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ cd godot-luau-script

scons_opts_base="platform=macos arch=universal osxcross_sdk=darwin22.4"

export SCONS_CACHE=/root/build/macos
scons target=editor $scons_opts_base
scons target=template_release $scons_opts_base

Expand Down
1 change: 1 addition & 0 deletions build_containers/build_scripts/windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ cd godot-luau-script

scons_opts_base="platform=windows arch=x86_64"

export SCONS_CACHE=/root/build/windows
scons target=editor $scons_opts_base
scons target=template_release $scons_opts_base

Expand Down

0 comments on commit 1cad039

Please sign in to comment.