From ee2355debaae3794ad8c064c52fdac00e42f559f Mon Sep 17 00:00:00 2001 From: Timur Bazhirov Date: Mon, 23 Dec 2024 19:32:59 -0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a88c9f..f413b78 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,6 @@ jobs: name: pymatgen package-name: pymatgen version: "v2024.11.13" - command: 'export CFLAGS="-DLONG_BIT=64 -DSIZEOF_VOID_P=8 -D_FILE_OFFSET_BITS=64" && export CXXFLAGS="-DLONG_BIT=64 -DSIZEOF_VOID_P=8 -D_FILE_OFFSET_BITS=64"' # - repo: https://github.com/pydantic/pydantic/ # name: pydantic # package-name: pydantic @@ -80,6 +79,9 @@ jobs: if [[ ! -z "${{ matrix.command }}" ]]; then ${{ matrix.command }} fi + # exports only needed for pymatgen + export CFLAGS="-DLONG_BIT=64 -DSIZEOF_VOID_P=8 -D_FILE_OFFSET_BITS=64" + export CXXFLAGS="-DLONG_BIT=64 -DSIZEOF_VOID_P=8 -D_FILE_OFFSET_BITS=64" git clone --depth 1 --branch ${{ matrix.version }} ${{ matrix.repo }} cd ${{ matrix.name }} pyodide build