gh-actions: use relwithdebinfo for actions and release for releases

This commit is contained in:
Ujhhgtg 2022-08-08 12:43:53 +08:00
commit dd3a49b8cf

View file

@ -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