mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
gh-actions: use relwithdebinfo for actions and release for releases
This commit is contained in:
parent
1d46e382c5
commit
dd3a49b8cf
1 changed files with 15 additions and 4 deletions
19
.github/workflows/ubuntu.yml
vendored
19
.github/workflows/ubuntu.yml
vendored
|
@ -44,23 +44,34 @@ jobs:
|
|||
fetch-depth: 0
|
||||
submodules: 'true'
|
||||
ssh-key: ${{ secrets.BOT_SSH_KEY }}
|
||||
- name: Build Ubuntu
|
||||
- name: Build RelWithDebInfo
|
||||
env:
|
||||
ENV_QT_PATH: ${{ env.qt-install-path }}
|
||||
run: |
|
||||
python ci/generate-version.py
|
||||
ci/linux/build_for_ubuntu.sh RelWithDebInfo
|
||||
- name: Upload the Build Artifact
|
||||
- name: Upload RelWithDebInfo
|
||||
uses: actions/upload-artifact@v3.1.0
|
||||
with:
|
||||
name: QtScrcpy-${{ matrix.os }}-${{ matrix.qt-arch-install }}
|
||||
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: |
|
||||
python ci/generate-version.py
|
||||
ci/linux/build_for_ubuntu.sh Release
|
||||
- name: Upload Release
|
||||
uses: actions/upload-artifact@v3.1.0
|
||||
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/RelWithDebInfo
|
||||
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/upload-release-action@2.3.0
|
||||
|
|
Loading…
Add table
Reference in a new issue