diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a10b51..3c61c03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - name: "Prune docker" run: docker system prune -f --all - name: "Get the code" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: "Get tag version" @@ -20,18 +20,18 @@ jobs: - name: "Print tag version" run: echo ${{ env.TAG_VERSION }} - name: "Set up QEMU" - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: "Set up Docker Buildx" - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: "Log in to DockerHub" - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: faasm.azurecr.io username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }} password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }} - name: "Build and push cpp-sysroot container" id: docker_build - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: push: true file: docker/cpp-sysroot.dockerfile diff --git a/docker/cpp-sysroot.dockerfile b/docker/cpp-sysroot.dockerfile index 6ec26f1..9f6a73b 100644 --- a/docker/cpp-sysroot.dockerfile +++ b/docker/cpp-sysroot.dockerfile @@ -56,7 +56,7 @@ RUN cd /code/cpp \ libfaasm \ libfaasm --threads \ libfaasmp \ - libfaasmpi + libfaasmpi \ # Lastly, build the libraries that populate the sysroot && inv \ libffi \ diff --git a/faasmtools/build.py b/faasmtools/build.py index 37db8a1..7857f07 100644 --- a/faasmtools/build.py +++ b/faasmtools/build.py @@ -372,14 +372,14 @@ def build_config_cmd(env_vars, cmd, shared=False, cxx=False, conf_args=True): return base_config_cmd -def run_autotools(proj_dir): +def run_autotools(env_vars, proj_dir): """ Runs through autotools set-up on the given directory """ def _run_auto_cmd(cmd): print("Running {}".format(cmd)) - auto_cmd = build_config_cmd([cmd], conf_args=False) + auto_cmd = build_config_cmd(env_vars, [cmd], conf_args=False) auto_cmd = " ".join(auto_cmd) run(auto_cmd, shell=True, check=True, cwd=proj_dir) diff --git a/tasks/libffi.py b/tasks/libffi.py index 211455f..105df82 100644 --- a/tasks/libffi.py +++ b/tasks/libffi.py @@ -19,12 +19,14 @@ def build(ctx, clean=False, threads=False): if exists(join(LIBFFI_DIR, "Makefile")) and clean: run("make clean", cwd=LIBFFI_DIR, shell=True, check=True) + build_env = get_faasm_build_env_dict(threads) + # Autotools - run_autotools(LIBFFI_DIR) + run_autotools(build_env, LIBFFI_DIR) # Configure - build_env = get_faasm_build_env_dict(threads) configure_cmd = build_config_cmd( + build_env, [ "./configure", "--includedir={}".format( diff --git a/tasks/zlib.py b/tasks/zlib.py index 5783b7d..98e87d2 100644 --- a/tasks/zlib.py +++ b/tasks/zlib.py @@ -22,7 +22,7 @@ def zlib(ctx, clean=False, threads=False): "CXX={}".format(build_env["FAASM_WASM_CXX"]), "CFLAGS='{}'".format(build_env["FAASM_WASM_CFLAGS"]), "CXXFLAGS='{}'".format(build_env["FAASM_WASM_CXXFLAGS"]), - "LD={}".format(build_env["FAASM_WASM_LD"]), + "LD={}".format(build_env["FAASM_WASM_CC"]), "LDFLAGS='{}'".format(build_env["FAASM_WASM_STATIC_LINKER_FLAGS"]), "AR={}".format(build_env["FAASM_WASM_AR"]), "RANLIB={}".format(build_env["FAASM_WASM_RANLIB"]),