diff options
author | Martin Matuska <martin@matuska.org> | 2020-02-08 23:02:53 +0100 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2020-02-09 00:24:39 +0100 |
commit | 0a09733d067d6790be87628c41ce1f97bbd01f1a (patch) | |
tree | 38c501743f57e215ee6d53b8f5526d5dbce2308b /build/ci/github_actions/ci.cmd | |
parent | f0b8157f9611ccdcdd236902b48c58bb2db44a95 (diff) | |
download | libarchive-0a09733d067d6790be87628c41ce1f97bbd01f1a.tar.gz |
CI: generate and publish build artifacts on GitHub actions
Fixes #1313
Diffstat (limited to 'build/ci/github_actions/ci.cmd')
-rwxr-xr-x | build/ci/github_actions/ci.cmd | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build/ci/github_actions/ci.cmd b/build/ci/github_actions/ci.cmd index d5e625ef..37e86c40 100755 --- a/build/ci/github_actions/ci.cmd +++ b/build/ci/github_actions/ci.cmd @@ -94,12 +94,15 @@ IF "%1"=="deplibs" ( IF "%BE%"=="mingw-gcc" ( SET PATH=%MINGWPATH% CD build_ci\cmake - mingw32-make install DESTDIR=%cd%\destdir || EXIT /b 1 + mingw32-make install || EXIT /b 1 ) ELSE IF "%BE%"=="msvc" ( - cmake --build . --target INSTALL --config Release + CD build_ci\cmake + cmake --build . --target INSTALL --config Release || EXIT /b 1 ) +) ELSE IF "%1"=="artifact" ( + tar -c -C "C:\Program Files (x86)" --format=zip -f libarchive.zip libarchive ) ELSE ( - ECHO "Usage: %0% deplibs|configure|build|test|install" + ECHO "Usage: %0% deplibs|configure|build|test|install|artifact" @EXIT /b 0 ) @EXIT /b 0 |