From a357273369c9080fbb0519911af1c4c93d65ea96 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Mon, 26 Jul 2021 00:47:10 +0200 Subject: remove useless tests, add AppImage creation to CI --- .github/workflows/ci.yml | 52 ++++++++++++++++++++---------------------------- polecat.desktop | 9 +++++++++ polecat.svg | 0 3 files changed, 31 insertions(+), 30 deletions(-) create mode 100644 polecat.desktop create mode 100644 polecat.svg diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a608fa..bd1a969 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,47 +25,39 @@ jobs: run: sudo apt-get update - name: Install dependencies - run: sudo apt-get install libcurl4-openssl-dev libjson-c-dev libarchive-dev cmake make + run: sudo apt-get install libcurl4-openssl-dev libjson-c-dev libarchive-dev cmake make wget - name: Create Build Environment run: cmake -E make_directory ${{runner.workspace}}/build - name: Configure CMake working-directory: ${{runner.workspace}}/build - shell: bash - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE:STRING=$BUILD_TYPE -DBUILD_MOCK:BOOL=ON + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_MOCK:BOOL=ON - name: Build working-directory: ${{runner.workspace}}/build - shell: bash - run: cmake --build . --config $BUILD_TYPE + run: cmake --build . - - name: Test `wine list` + - name: Create AppImage working-directory: ${{runner.workspace}}/build - shell: bash - run: ./polecat_mock wine list + run: | + DESTDIR=AppDir cmake --install . + wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage + chmod +x linuxdeploy-x86_64.AppImage + ./linuxdeploy-x86_64.AppImage --appdir AppDir \ + --output appimage \ + --desktop-file=$GITHUB_WORKSPACE/polecat.desktop \ + --icon-file=$GITHUB_WORKSPACE/polecat.svg + mv polecat*.AppImage polecat.AppImage - - name: Test `wine download` - working-directory: ${{runner.workspace}}/build - shell: bash - run: ./polecat_mock wine download mock - - - name: Test `wine run` - working-directory: ${{runner.workspace}}/build - shell: bash - run: ./polecat_mock wine run mock 1 2 3 4 - - - name: Test `lutris search` - working-directory: ${{runner.workspace}}/build - shell: bash - run: ./polecat_mock lutris search game - - - name: Get mock environment - working-directory: ${{runner.workspace}}/build - shell: bash - run: ./polecat_mock env + - name: Upload AppIamge + uses: actions/upload-artifact@v2 + with: + path: ${{runner.workspace}}/build/polecat.AppImage - - name: Get environment + - name: Test mock build working-directory: ${{runner.workspace}}/build - shell: bash - run: ./polecat env \ No newline at end of file + run: | + ./polecat_mock wine list + ./polecat_mock wine download mock + ./polecat_mock wine run mock 1 2 3 4 diff --git a/polecat.desktop b/polecat.desktop new file mode 100644 index 0000000..d3a0ab0 --- /dev/null +++ b/polecat.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Icon=polecat +Exec=polecat +Name=polecat +Keywords=wine;lutris +Terminal=true +Categories=Application;Game diff --git a/polecat.svg b/polecat.svg new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3