feat: update server 2.4 #378
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
on: | |
push: | |
paths: | |
- 'QtScrcpy/**' | |
- '!QtScrcpy/res/**' | |
- '.github/workflows/ubuntu.yml' | |
- 'ci/linux/**' | |
pull_request: | |
paths: | |
- 'QtScrcpy/**' | |
- '!QtScrcpy/res/**' | |
- '.github/workflows/ubuntu.yml' | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
qt-ver: [5.15.2] | |
qt-arch-install: [gcc_64] | |
gcc-arch: [x64] | |
env: | |
target-name: QtScrcpy | |
qt-install-path: ${{ github.workspace }}/${{ matrix.qt-ver }} | |
plantform-des: ubuntu | |
steps: | |
- name: Install Qt | |
uses: jurplel/[email protected] | |
with: | |
version: ${{ matrix.qt-ver }} | |
cached: ${{ steps.cache-qt.outputs.cache-hit }} | |
- name: Cache Qt | |
id: cache-qt | |
uses: actions/[email protected] | |
with: | |
path: ${{ env.qt-install-path }}/${{ matrix.qt-arch-install }} | |
key: ${{ runner.os }}/${{ matrix.qt-ver }}/${{ matrix.qt-arch-install }} | |
- name: Install GL library | |
run: sudo apt-get install -y libglew-dev libglfw3-dev | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: 'true' | |
ssh-key: ${{ secrets.BOT_SSH_KEY }} | |
- name: Build RelWithDebInfo | |
env: | |
ENV_QT_PATH: ${{ env.qt-install-path }} | |
run: | | |
ci/linux/build_for_linux.sh "RelWithDebInfo" | |
- name: Upload RelWithDebInfo | |
uses: actions/[email protected] | |
with: | |
name: QtScrcpy-${{ matrix.os }}-${{ matrix.qt-arch-install }}-RelWithDebInfo | |
path: output/x64/RelWithDebInfo/* | |
- name: Build Release | |
env: | |
ENV_QT_PATH: ${{ env.qt-install-path }} | |
run: | | |
ci/linux/build_for_linux.sh "Release" | |
- name: Upload Release | |
uses: actions/[email protected] | |
with: | |
name: QtScrcpy-${{ matrix.os }}-${{ matrix.qt-arch-install }}-Release | |
path: output/x64/Release/* | |
- name: Install the zip utility | |
run: | | |
sudo apt install zip -y | |
- name: Zip the Artifacts | |
run: | | |
zip -r QtScrcpy-${{ matrix.os }}-${{ matrix.qt-arch-install }}.zip output/x64/Release | |
- name: Upload to Releases | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: svenstaro/[email protected] | |
with: | |
file: QtScrcpy-${{ matrix.os }}-${{ matrix.qt-arch-install }}.zip | |
asset_name: QtScrcpy-${{ matrix.os }}-${{ matrix.qt-arch-install }}.zip | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref }} | |
overwrite: true |