run: ./build/ci/build.sh -a install
env:
BS: ${{ matrix.bs }}
+ - name: Artifact
+ run: ./build/ci/build.sh -a artifact
+ env:
+ BS: ${{ matrix.bs }}
+ - uses: actions/upload-artifact@v1
+ with:
+ name: libarchive-macos-${{ matrix.bs }}-${{ github.sha }}
+ path: libarchive.tar.xz
Ubuntu:
runs-on: ubuntu-latest
run: ./build/ci/build.sh -a install
env:
BS: ${{ matrix.bs }}
-
+ - name: Artifact
+ run: ./build/ci/build.sh -a artifact
+ env:
+ BS: ${{ matrix.bs }}
+ - uses: actions/upload-artifact@v1
+ with:
+ name: libarchive-ubuntu-${{ matrix.bs }}-${{ matrix.crypto }}-${{ github.sha }}
+ path: libarchive.tar.xz
Ubuntu-distcheck:
runs-on: ubuntu-latest
steps:
shell: cmd
env:
BE: ${{ matrix.be }}
+ - name: Artifact
+ run: ./build/ci/github_actions/ci.cmd artifact
+ shell: cmd
+ env:
+ BE: ${{ matrix.be }}
+ - uses: actions/upload-artifact@v1
+ with:
+ name: libarchive-windows-${{ matrix.be }}-${{ github.sha }}
+ path: libarchive.zip
test) ;;
install) ;;
distcheck) ;;
+ artifact) ;;
*) inputerror "Invalid action (-a)" ;;
esac
ACTIONS="${ACTIONS} ${OPTARG}"
install)
${MAKE} ${MAKE_ARGS} install DESTDIR="${BUILDDIR}/destdir"
RET="$?"
- cd ${BUILDDIR}/destdir && ls -lR .
+ cd "${BUILDDIR}/destdir" && ls -lR .
;;
distcheck)
${MAKE} ${MAKE_ARGS} distcheck
RET="$?"
;;
+ artifact)
+ tar -c -J -C "${BUILDDIR}/destdir" -f "${CURDIR}/libarchive.tar.xz" usr
+ ls -l "${CURDIR}/libarchive.tar.xz"
+ ;;
esac
if [ "${RET}" != "0" ]; then
exit "${RET}"
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