Skip to content

Commit

Permalink
shorten github ci time
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk committed Apr 30, 2024
1 parent e90010f commit 382f75d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/flutter-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ jobs:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}

- name: Install vcpkg dependencies
if: matrix.job.extra-build-features == '' || env.UPLOAD_ARTIFACT == 'true'
run: |
case ${{ matrix.job.target }} in
aarch64-unknown-linux-gnu)
Expand All @@ -1072,6 +1073,7 @@ jobs:
- uses: rustdesk-org/run-on-arch-action@amd64-support
name: Build rustdesk library for ${{ matrix.job.arch }}
id: vcpkg
if: matrix.job.extra-build-features == '' || env.UPLOAD_ARTIFACT == 'true'
with:
arch: ${{ matrix.job.arch }}
distro: ${{ matrix.job.distro }}
Expand Down Expand Up @@ -1149,6 +1151,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@master
if: matrix.job.extra-build-features == '' || env.UPLOAD_ARTIFACT == 'true'
with:
name: librustdesk-${{ matrix.job.arch }}-${{ matrix.job.extra-build-features }}.so
path: target/release/liblibrustdesk.so
Expand Down Expand Up @@ -1403,13 +1406,15 @@ jobs:
- name: Restore the rustdesk lib file
uses: actions/download-artifact@master
if: matrix.job.extra-build-features == '' || env.UPLOAD_ARTIFACT == 'true'
with:
name: librustdesk-${{ matrix.job.arch }}-${{ matrix.job.extra-build-features }}.so
path: ./target/release/

- uses: rustdesk-org/run-on-arch-action@amd64-support
name: flutter build
id: vcpkg
if: matrix.job.extra-build-features == '' || env.UPLOAD_ARTIFACT == 'true'
with:
arch: ${{ matrix.job.arch }}
distro: ${{ matrix.job.distro }}
Expand Down Expand Up @@ -1528,14 +1533,14 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@master
if: ${{ contains(matrix.job.extra-build-features, 'flatpak') }}
if: matrix.job.extra-build-features == 'flatpak' && env.UPLOAD_ARTIFACT == 'true'
with:
name: rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.deb
path: rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.deb

# Temporary disable for there is no many archlinux arm hosts
- name: Patch archlinux PKGBUILD
if: matrix.job.extra-build-features == '' && matrix.job.arch == 'x86_64'
if: matrix.job.extra-build-features == '' && env.UPLOAD_ARTIFACT == 'true' && matrix.job.arch == 'x86_64'
run: |
sed -i "s/arch=('x86_64')/arch=('${{ matrix.job.arch }}')/g" res/PKGBUILD
case ${{ matrix.job.arch }} in
Expand All @@ -1546,7 +1551,7 @@ jobs:
# Temporary disable for there is no many archlinux arm hosts
- name: Build archlinux package
if: matrix.job.extra-build-features == '' && matrix.job.arch == 'x86_64'
if: matrix.job.extra-build-features == '' && env.UPLOAD_ARTIFACT == 'true' && matrix.job.arch == 'x86_64'
uses: rustdesk-org/arch-makepkg-action@master
with:
packages: >
Expand Down

0 comments on commit 382f75d

Please sign in to comment.