mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 14:18:45 +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
|
fetch-depth: 0
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
ssh-key: ${{ secrets.BOT_SSH_KEY }}
|
ssh-key: ${{ secrets.BOT_SSH_KEY }}
|
||||||
- name: Build Ubuntu
|
- name: Build RelWithDebInfo
|
||||||
env:
|
env:
|
||||||
ENV_QT_PATH: ${{ env.qt-install-path }}
|
ENV_QT_PATH: ${{ env.qt-install-path }}
|
||||||
run: |
|
run: |
|
||||||
python ci/generate-version.py
|
python ci/generate-version.py
|
||||||
ci/linux/build_for_ubuntu.sh RelWithDebInfo
|
ci/linux/build_for_ubuntu.sh RelWithDebInfo
|
||||||
- name: Upload the Build Artifact
|
- name: Upload RelWithDebInfo
|
||||||
uses: actions/upload-artifact@v3.1.0
|
uses: actions/upload-artifact@v3.1.0
|
||||||
with:
|
with:
|
||||||
name: QtScrcpy-${{ matrix.os }}-${{ matrix.qt-arch-install }}
|
name: QtScrcpy-${{ matrix.os }}-${{ matrix.qt-arch-install }}-RelWithDebInfo
|
||||||
path: output/x64/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
|
- name: Install the zip utility
|
||||||
run: |
|
run: |
|
||||||
sudo apt install zip -y
|
sudo apt install zip -y
|
||||||
- name: Zip the Artifacts
|
- name: Zip the Artifacts
|
||||||
run: |
|
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
|
- name: Upload to Releases
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: svenstaro/upload-release-action@2.3.0
|
uses: svenstaro/upload-release-action@2.3.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue