Unify step names, add ctest

This commit is contained in:
Simran Spiller
2020-09-23 01:19:52 +02:00
parent 5b6e6e70ee
commit b1cfe57894
+15 -12
View File
@@ -45,11 +45,10 @@ jobs:
image: olivevideoeditor/ci-olive:${{ matrix.vfx-cy }}.${{ matrix.ci-common-version }} image: olivevideoeditor/ci-olive:${{ matrix.vfx-cy }}.${{ matrix.ci-common-version }}
steps: steps:
- uses: actions/checkout@v2 - name: Checkout Source Code
with: uses: actions/checkout@v2
repository: olive-editor/olive
- name: Configure - name: Configure CMake
run: | run: |
mkdir build mkdir build
cd build cd build
@@ -63,30 +62,34 @@ jobs:
run: | run: |
cmake --build . cmake --build .
- name: Install - name: Test
working-directory: build working-directory: build
run: | run: |
cmake --install app --prefix appdir/usr ctest -C ${{ matrix.build-type }}
- name: Bundle - name: Create Package
id: bundle id: package
working-directory: build working-directory: build
env: env:
ARCH: x86_64 ARCH: x86_64
run: | run: |
export VERSION=${GITHUB_SHA::8} cmake --install app --prefix appdir/usr
VERSION=${GITHUB_SHA::8}
export VERSION
/usr/local/linuxdeployqt-x86_64.AppImage \ /usr/local/linuxdeployqt-x86_64.AppImage \
appdir/usr/share/applications/org.olivevideoeditor.Olive.desktop \ appdir/usr/share/applications/org.olivevideoeditor.Olive.desktop \
-appimage \ -appimage \
--appimage-extract-and-run --appimage-extract-and-run
filename=$(echo Olive*.AppImage) filename=$(echo Olive*.AppImage)
mv "${filename}" "${filename/x86_64/Linux-x86_64}" pkgname="${filename/x86_64/Linux-x86_64}"
mv "${filename}" "${pkgname}"
echo "::set-output name=pkgname::${pkgname}"
echo "::set-output name=artifact::${filename/x86_64/Linux-x86_64-${{ matrix.cc-compiler }}}" echo "::set-output name=artifact::${filename/x86_64/Linux-x86_64-${{ matrix.cc-compiler }}}"
- name: Upload artifact - name: Upload Artifact to GitHub
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ steps.bundle.outputs.artifact }} name: ${{ steps.package.outputs.artifact }}
path: build/Olive*.AppImage path: build/Olive*.AppImage
windows: windows: