From cb5a5c60482a10511a449379c14921f3e9405df6 Mon Sep 17 00:00:00 2001 From: Evgenii Kliuchnikov Date: Fri, 8 Sep 2023 07:42:41 -0700 Subject: [PATCH] test building from the tarball FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/google/brotli/pull/1073 from anthrotype:py-long-description 45413874748d1f92a7e701d7320efaa101441c20 PiperOrigin-RevId: 563749441 --- .github/workflows/build_test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index e710c0f44..0ef2c3977 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -357,3 +357,28 @@ jobs: python -VV python -c "import sys; sys.exit('Invalid python version') if '.'.join(map(str,sys.version_info[0:2])) != '${{ matrix.python_version }}' else True" python setup.py ${{ matrix.py_setuptools_cmd || 'test'}} + + archive_build: + name: Build and test from archive + runs-on: 'ubuntu-latest' + defaults: + run: + shell: bash + steps: + + - name: Checkout the source + uses: actions/checkout@v3 + with: + submodules: false + fetch-depth: 1 + + - name: Archive + run: | + git archive HEAD -o archive.tgz + + - name: Extract + run: | + mkdir archive + cd archive + tar xvzf ../archive.tgz + ls