mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
build AppImage at push & pull-requests on master
creates AppImage at push & pull-request on master branch and uploads it as artifact. Update create_appimage.sh
This commit is contained in:
parent
adbe7908c6
commit
49984b6005
3 changed files with 143 additions and 0 deletions
48
.github/workflows/build-appimage.yml
vendored
Normal file
48
.github/workflows/build-appimage.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: CI
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the master branch
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# check out github repo, $GITHUB_WORKSPACE
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# make our scripts executable
|
||||
- run: chmod +x $GITHUB_WORKSPACE/.github/scripts/setup_scrcpy.sh
|
||||
- run: chmod +x $GITHUB_WORKSPACE/.github/scripts/create_appimage.sh
|
||||
|
||||
# install dependencies of scrcpy and builds scrcpy
|
||||
- name: Run scrcpy setup script
|
||||
run: $GITHUB_WORKSPACE/.github/scripts/setup_scrcpy.sh
|
||||
shell: bash
|
||||
|
||||
# bundle dependencies and scrcpy to create appimage
|
||||
- name: Run create appimage script
|
||||
run: $GITHUB_WORKSPACE/.github/scripts/create_appimage.sh
|
||||
shell: bash
|
||||
|
||||
# upload scrcpy appimage
|
||||
- name: Upload output file
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: scrcpy-x86_64.AppImage
|
||||
path: ./scrcpy*.AppImage
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue