Skip to content

Commit dee1751

Browse files
committed
CI: Test standalone release tarball
1 parent 5aa0b5b commit dee1751

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,22 @@ jobs:
4343
sudo apt-get install doxygen
4444
doc/gendoc.sh
4545
tar -czf documentation.tar.gz doc index.html
46+
4647
- name: Create standalone version
4748
run: |
4849
bash tools/create_standalone.sh nowide_standalone_${{steps.get_tag.outputs.tag}}
4950
tar -czf nowide_standalone.tar.gz nowide_standalone_${{steps.get_tag.outputs.tag}}
51+
- name: Test standalone release tarball
52+
run: |
53+
tmp_dir=$(mktemp -d -p "$RUNNER_TEMP")
54+
cd "$tmp_dir"
55+
tar -xf "${{github.workspace}}/nowide_standalone.tar.gz"
56+
src_dir="$PWD/nowide_standalone_${{steps.get_tag.outputs.tag}}"
57+
mkdir build && cd build
58+
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/../install "$src_dir"
59+
cmake --build . --config Debug --target install
60+
ctest --output-on-failure -C Debug --verbose
61+
5062
- name: Create Boost version
5163
run: |
5264
FOLDER="nowide_${{steps.get_tag.outputs.tag}}"
@@ -65,6 +77,7 @@ jobs:
6577
cmake -DBoost_DEBUG=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/../install "$src_dir"
6678
cmake --build . --config Debug --target install
6779
ctest --output-on-failure -C Debug --verbose
80+
6881
- name: Create Release
6982
if: github.event_name == 'push'
7083
id: create_release

0 commit comments

Comments
 (0)