aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorEvgenii Kliuchnikov <eustas@google.com>2023-09-13 05:13:11 -0700
committerCopybara-Service <copybara-worker@google.com>2023-09-13 05:13:57 -0700
commitce9c16e88296385071d975665acb3c3eaa96f26a (patch)
tree86ae55792adce39a89669331be234183b69658e8 /.github
parent63402aa8afb25d03fd710402bdeb84a8ae2208fc (diff)
downloadbrotli-ce9c16e88296385071d975665acb3c3eaa96f26a.zip
brotli-ce9c16e88296385071d975665acb3c3eaa96f26a.tar.gz
brotli-ce9c16e88296385071d975665acb3c3eaa96f26a.tar.bz2
upload full testdata archive
PiperOrigin-RevId: 565017690
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_test.yml36
-rw-r--r--.github/workflows/release.yaml71
2 files changed, 70 insertions, 37 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index 91668d3..c21a144 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -357,39 +357,3 @@ 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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- 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
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 00b2b33..4c0bc6f 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -119,4 +119,73 @@ jobs:
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
with:
files: brotli-${{matrix.triplet}}.zip
- tag_name: dev/null
+
+ testdata_upload:
+ name: Upload testdata
+ runs-on: 'ubuntu-latest'
+ defaults:
+ run:
+ shell: bash
+ steps:
+
+ - name: Checkout the source
+ uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
+ with:
+ submodules: false
+ fetch-depth: 1
+
+ - name: Compress testdata
+ run: |
+ tar cvfJ testdata.txz tests/testdata
+
+ - name: Upload archive to release
+ if: github.event_name == 'release'
+ uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
+ with:
+ files: testdata.txz
+
+ archive_build:
+ needs: testdata_upload
+ name: Build and test from archive
+ runs-on: 'ubuntu-latest'
+ defaults:
+ run:
+ shell: bash
+ steps:
+
+ - name: Checkout the source
+ uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
+ with:
+ submodules: false
+ fetch-depth: 1
+
+ - name: Archive
+ run: |
+ git archive HEAD -o archive.tgz
+
+ - name: Pick tag
+ run: |
+ echo "BROTLI_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
+
+ - name: Extract
+ run: |
+ mkdir archive
+ cd archive
+ tar xvzf ../archive.tgz
+
+ - name: Download testdata
+ run: |
+ cd archive
+ scripts/download_testdata.sh
+
+ - name: Configure and Build
+ run: |
+ cd archive
+ cmake -B out .
+ cmake --build out
+
+ - name: Test
+ run: |
+ cd archive
+ cd out
+ ctest