From e90d2c05d97649e1ff9d0741fd404be8bd86f6cb Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 12 Apr 2024 14:46:32 +0530 Subject: [PATCH 1/2] CI: Support uploading tarball to release --- .github/workflows/CI.yml | 29 +++++++++++++++++++++++++++++ ci/create_source_tarball.sh | 4 ++-- ci/environment_linux.yml | 20 ++++++++++++++++++++ ci/upload_tarball_to_release.sh | 23 +++++++++++++++++++++++ 4 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 ci/environment_linux.yml create mode 100644 ci/upload_tarball_to_release.sh diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4deb798b86..50b443a70c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -493,3 +493,32 @@ jobs: run: | cd integration_tests ./run_tests.py -b cpython c_py + + upload_tarball: + name: Upload Tarball + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: mamba-org/setup-micromamba@v1 + with: + environment-file: ci/environment_linux.yml + create-args: >- + python=3.10 + + - name: Create Source Tarball + shell: bash -e -l {0} + run: | + ./build0.sh + lpython_version=$( Date: Fri, 12 Apr 2024 15:03:22 +0530 Subject: [PATCH 2/2] Using environment.yml --- .github/workflows/CI.yml | 2 +- ci/environment_linux.yml | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 ci/environment_linux.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 50b443a70c..61454e5c5c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -504,7 +504,7 @@ jobs: - uses: mamba-org/setup-micromamba@v1 with: - environment-file: ci/environment_linux.yml + environment-file: ci/environment.yml create-args: >- python=3.10 diff --git a/ci/environment_linux.yml b/ci/environment_linux.yml deleted file mode 100644 index 9ea4f759bd..0000000000 --- a/ci/environment_linux.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: lf -channels: - - conda-forge -dependencies: - - llvmdev=11.1.0 - - toml - - pytest - - jupyter - - xeus=3.0.5 - - xeus-zmq=1.0.2 - - xtl - - nlohmann_json - - cppzmq - - jupyter_kernel_test - - xonsh - - re2c - - numpy - - bison=3.4 - - rapidjson - - ninja \ No newline at end of file