├── .github └── workflows │ └── test.yml ├── LICENSE ├── README.md └── action.yml /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | on: [push] 2 | 3 | jobs: 4 | run_test: 5 | runs-on: ubuntu-18.04 6 | name: Test Action 7 | steps: 8 | - name: Checkout 9 | uses: actions/checkout@v2 10 | with: 11 | repository: "AppImageCrafters/appimage-demo-qt5" 12 | - name: Checkout 13 | uses: actions/checkout@v2 14 | - name: Build Qt5 Application 15 | run: | 16 | sudo apt-get update 17 | sudo apt-get install -y qt5-default qtdeclarative5-dev cmake git 18 | git clone https://github.com/AppImageCrafters/appimage-demo-qt5.git 19 | cd appimage-demo-qt5 20 | cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr 21 | make -j`nproc` install DESTDIR=../AppDir 22 | - name: Build AppImage 23 | uses: ./ 24 | with: 25 | recipe: "./appimage-demo-qt5/AppImageBuilder.yml" 26 | env: 27 | UPDATE_INFO: gh-releases-zsync|AppImageCrafters|appimage-demo-qt5|latest|*x86_64.AppImage.zsync 28 | - uses: actions/upload-artifact@v2 29 | with: 30 | name: AppImage 31 | path: './*.AppImage*' -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 AppImageCrafters 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # build-appimage 2 | 3 | Create an AppImage using appimage-builder. Check the [appimage-builder documentation](https://appimage-builder.readthedocs.io/) for more details about writing the recipe files. 4 | 5 | ## Inputs 6 | 7 | 8 | ### `recipe` 9 | 10 | **Required** The appimage-builder recipe file. 11 | 12 | ### `args` 13 | 14 | **Optional** The appimage-builder execution args. 15 | 16 | 17 | ## Example usage 18 | 19 | ```yaml 20 | uses: AppImageCrafters/build-appimage@master 21 | with: 22 | recipe: "./appimage-demo-qt5/AppImageBuilder.yml" 23 | env: 24 | UPDATE_INFO: gh-releases-zsync|AppImageCrafters|appimage-demo-qt5|latest|*x86_64.AppImage.zsync 25 | ``` 26 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'Build AppImage' 2 | description: 'Build an AppImage using appimage-builder' 3 | branding: 4 | icon: 'package' 5 | color: 'green' 6 | inputs: 7 | recipe: 8 | description: 'appimage-builder recipe file' 9 | required: true 10 | default: 'AppImageBuilder.yml' 11 | args: 12 | description: 'appimage-builder arguments' 13 | required: false 14 | default: '--skip-test' 15 | runs: 16 | using: 'docker' 17 | image: docker://appimagecrafters/appimage-builder:1.1.0 18 | args: 19 | - appimage-builder 20 | - '--recipe=${{ inputs.recipe }}' 21 | - '${{ inputs.args }}' 22 | --------------------------------------------------------------------------------