You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scrcpy/.github/workflows/build-appimage.yml

49 lines
1.5 KiB
YAML

# 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-${{ env.LATEST_TAG }}.AppImage
path: ./scrcpy*.AppImage