Upload tarball as artifact in CI

This commit is contained in:
Alexey Sokolov
2023-01-07 22:19:22 +00:00
parent 35d8452f99
commit 87af1a1a23

View File

@@ -31,11 +31,17 @@ jobs:
submodules: true
- run: source .github/ubuntu_deps.sh
- run: |
./make-tarball.sh --nightly znc-git-2015-01-16 /tmp/znc-tarball.tar.gz
tar xvf /tmp/znc-tarball.tar.gz
cd znc-git-2015-01-16
date=$(date +%Y-%m-%d)
./make-tarball.sh --nightly znc-git-$date /tmp/znc-git-$date.tar.gz
tar xvf /tmp/znc-git-$date.tar.gz
cd znc-git-$date
export CFGFLAGS="--with-gtest=$GITHUB_WORKSPACE/third_party/googletest/googletest --with-gmock=$GITHUB_WORKSPACE/third_party/googletest/googlemock --disable-swig"
source $GITHUB_WORKSPACE/.github/build.sh
- uses: actions/upload-artifact@v3
with:
name: znc-tarball
path: /tmp/znc-git*.tar.gz
if-no-files-found: error
- uses: codecov/codecov-action@v3
with:
name: ${{ github.job }}