mirror of
https://github.com/google/brotli.git
synced 2024-09-19 14:19:59 +00:00
test building from the tarball
PiperOrigin-RevId: 564299396
This commit is contained in:
parent
896ea7a9a9
commit
e8569f79fc
36
.github/workflows/build_test.yml
vendored
36
.github/workflows/build_test.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user