aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorEvgenii Kliuchnikov <eustas@google.com>2023-09-11 01:11:21 -0700
committerCopybara-Service <copybara-worker@google.com>2023-09-11 01:11:59 -0700
commite8569f79fc7c3a8b411be13b44ff8c41e93bb7be (patch)
tree304f418a4f64105d4223dc6a1a8bbfb6b3fa4ea3 /.github
parent896ea7a9a92d6d4185e4d96322fbf7af96461d4b (diff)
downloadbrotli-e8569f79fc7c3a8b411be13b44ff8c41e93bb7be.zip
brotli-e8569f79fc7c3a8b411be13b44ff8c41e93bb7be.tar.gz
brotli-e8569f79fc7c3a8b411be13b44ff8c41e93bb7be.tar.bz2
test building from the tarball
PiperOrigin-RevId: 564299396
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_test.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index e710c0f..abce490 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -357,3 +357,39 @@ 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
+
+ - name: Configure and Build
+ run: |
+ cd archive
+ cmake -B out .
+ cmake --build out
+
+ - name: Test
+ run: |
+ cd archive
+ cd out
+ ctest