diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-07-26 00:47:10 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-07-26 00:50:11 +0200 |
commit | a357273369c9080fbb0519911af1c4c93d65ea96 (patch) | |
tree | d511622b38b75ca889d114f653457aa659d7db3f | |
parent | 30d67cbe6c1ecda42cf757c2f0a5daab3a2b4df7 (diff) | |
download | polecat-a357273369c9080fbb0519911af1c4c93d65ea96.tar.gz polecat-a357273369c9080fbb0519911af1c4c93d65ea96.zip |
remove useless tests, add AppImage creation to CI
-rw-r--r-- | .github/workflows/ci.yml | 52 | ||||
-rw-r--r-- | polecat.desktop | 9 | ||||
-rw-r--r-- | polecat.svg | 0 |
3 files changed, 31 insertions, 30 deletions
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 --- /dev/null +++ b/polecat.svg |