Skip to content

Commit

Permalink
Install the emsdk in toolchain directory to have CI cache it correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Nov 16, 2022
1 parent 13b4e7d commit 0eea925
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kiwixbuild/dependencies/emsdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ def source_dir(self):
class Builder(Builder):
@property
def install_path(self):
return self.build_path
return pj(self.buildEnv.toolchain_dir, self.target.full_name())

def _copy_source(self, context):
context.try_skip(self.build_path)
context.try_skip(self.install_path)
copy_tree(self.source_path, self.install_path)

def _install(self, context):
context.try_skip(self.build_path)
context.try_skip(self.install_path)
command = "./emsdk install 3.1.24"
run_command(command, self.build_path, context)
run_command(command, self.install_path, context)

def _activate(self, context):
context.try_skip(self.build_path)
context.try_skip(self.install_path)
command = "./emsdk activate 3.1.24"
run_command(command, self.build_path, context)
run_command(command, self.install_path, context)


def build(self):
Expand Down

0 comments on commit 0eea925

Please sign in to comment.