Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test building from the tarball #1075

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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