Skip to content

Commit

Permalink
[CI] Update actions to the latest versions
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
  • Loading branch information
AenBleidd committed Apr 11, 2024
1 parent 526484c commit cc4ee2c
Show file tree
Hide file tree
Showing 18 changed files with 280 additions and 129 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/all_projects_list_xml_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
type: [all_projects_list_xml_update]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 2
- name: Download latest all_projects_list.xml
Expand All @@ -45,7 +45,7 @@ jobs:
echo "PR_REQUIRED=$?" >> $GITHUB_ENV
- name: Create PR
if: ${{ success() && env.PR_REQUIRED == 1 }}
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e
with:
commit-message: Update all_projects_list.xml
title: Update all_projects_list.xml
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
type: [armv6, arm, arm64, x86, x86_64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 2

Expand Down Expand Up @@ -78,14 +78,14 @@ jobs:

- name: Upload logs on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: android_logs_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
path: deploy/logs.7z

- name: Upload client on success
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: android_client_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
path: android/BOINC/app/src/main/assets/
Expand All @@ -99,48 +99,48 @@ jobs:
task: [assembleRelease, assembleXiaomi_release, assembleArmv6_release, jacocoTestReportDebug]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 2

- name: Download armv6 client
uses: actions/download-artifact@v3
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
name: android_client_armv6_${{ github.event.pull_request.head.sha }}
path: android/BOINC/app/src/main/assets/

- name: Download arm client
uses: actions/download-artifact@v3
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
name: android_client_arm_${{ github.event.pull_request.head.sha }}
path: android/BOINC/app/src/main/assets/

- name: Download arm64 client
uses: actions/download-artifact@v3
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
name: android_client_arm64_${{ github.event.pull_request.head.sha }}
path: android/BOINC/app/src/main/assets/

- name: Download x86 client
uses: actions/download-artifact@v3
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
name: android_client_x86_${{ github.event.pull_request.head.sha }}
path: android/BOINC/app/src/main/assets/

- name: Download x86_64 client
uses: actions/download-artifact@v3
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
name: android_client_x86_64_${{ github.event.pull_request.head.sha }}
path: android/BOINC/app/src/main/assets/

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
with:
distribution: 'zulu'
java-version: "17"

- name: Setup Android SDK
uses: android-actions/setup-android@v2
uses: android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277

- name: Build manager with vcpkg
run: ./android/ci_build_vcpkg_manager.sh --skip-client-build --tasks "clean ${{ matrix.task }}"
Expand All @@ -151,7 +151,7 @@ jobs:

- name: Upload logs on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: android_logs_manager_${{ github.event.pull_request.head.sha }}
path: deploy/logs.7z
Expand All @@ -160,35 +160,35 @@ jobs:
run: python ./deploy/prepare_deployment.py android_manager

- name: Upload generic artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: ${{ matrix.task == 'assembleRelease' }}
with:
name: android_manager_${{ github.event.pull_request.head.sha }}
path: deploy/android_manager.7z

- name: Upload xiaomi manager
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: ${{ matrix.task == 'assembleXiaomi_release' }}
with:
name: android_xiaomi_manager_${{ github.event.pull_request.head.sha }}
path: deploy/android_manager_xiaomi.7z

- name: Upload armv6 only manager
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: ${{ matrix.task == 'assembleArmv6_release' }}
with:
name: android_armv6_manager_${{ github.event.pull_request.head.sha }}
path: deploy/android_manager_armv6.7z

- name: Upload JUnit Tests Results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: ${{ always() && matrix.task == 'jacocoTestReportDebug' }}
with:
name: Android_tests_results
path: android/BOINC/app/build/test-results/testDebugUnitTest/TEST-*.xml

- name: Upload coverage report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed
if: ${{ matrix.task == 'jacocoTestReportDebug' }}
with:
fail_ci_if_error: true
Expand All @@ -202,7 +202,7 @@ jobs:
type: [libs, apps, libs-cmake]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 2

Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:

- name: Upload logs on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: android_logs_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
path: deploy/logs.7z
Expand All @@ -255,7 +255,7 @@ jobs:
run: python ./deploy/prepare_deployment.py android_${{ matrix.type }}

- name: Upload generic artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: ${{ ! contains(matrix.type, 'libs') }}
with:
name: android_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 2

Expand All @@ -36,7 +36,7 @@ jobs:
sudo apt-get install -y libftgl-dev freeglut3-dev libcurl4-openssl-dev libxmu-dev libxi-dev libfcgi-dev libxss-dev libnotify-dev libxcb-util0-dev libgtk-3-dev libsecret-1-dev libgcrypt20-dev libsystemd-dev libwebkit2gtk-4.0-dev p7zip-full libxxf86vm-dev ocl-icd-opencl-dev zip
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: |
3rdParty/buildCache
Expand All @@ -52,7 +52,7 @@ jobs:
run: ./3rdParty/buildLinuxDependencies.sh && ./configure --enable-apps --with-wx-prefix=${GITHUB_WORKSPACE}/3rdParty/buildCache/linux

- name: Coverity Scan
uses: vapier/coverity-scan-action@v1
uses: vapier/coverity-scan-action@2068473c7bdf8c2fb984a6a40ae76ee7facd7a85
with:
project: 'BOINC/boinc'
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/flutter-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ jobs:
type: [macos, ios]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 2

- name: Setup xcode
uses: maxim-lobanov/setup-xcode@v1
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: '12.5.1'

- name: Setup flutter
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
with:
channel: 'beta'

Expand All @@ -56,7 +56,7 @@ jobs:
run: flutter config --enable-macos-desktop

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
if: matrix.type == 'macos'
with:
path: 3rdParty/buildCache
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/flutter-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@ jobs:
type: [linux, android]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 1

- name: Setup Java
if: matrix.type == 'android'
uses: actions/setup-java@v3
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
with:
distribution: 'zulu'
java-version: '17'

- name: Setup android SDK
if: matrix.type == 'android'
uses: android-actions/setup-android@v2
uses: android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277

- name: Setup flutter
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
with:
channel: 'beta'

Expand All @@ -73,7 +73,7 @@ jobs:
sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
if: matrix.type == 'linux'
with:
path: |
Expand All @@ -96,7 +96,7 @@ jobs:
run: samples/flutter/ci_build_linux.sh

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
if: matrix.type == 'android'
with:
path: |
Expand Down Expand Up @@ -129,19 +129,19 @@ jobs:
- name: Prepare android
if: success() && matrix.type == 'android'
uses: edgarrc/action-7z@v1
uses: edgarrc/action-7z@93485892b5468e89cfb2c28a8d1c0e3904906458
with:
args: 7z a -t7z -mx=9 deploy/flutter_${{ matrix.type }}.7z -r0 samples/flutter/boinc/build/app/outputs/flutter-apk/app-release.apk

- name: Prepare linux
if: success() && matrix.type == 'linux'
uses: edgarrc/action-7z@v1
uses: edgarrc/action-7z@93485892b5468e89cfb2c28a8d1c0e3904906458
with:
args: 7z a -t7z -mx=9 deploy/flutter_${{ matrix.type }}.7z -r0 samples/flutter/boinc/build/linux/x64/release/bundle/*

- name: Upload ${{ matrix.type }}
if: success()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: ${{ matrix.type }}_flutter_${{ github.event.pull_request.head.sha }}
path: deploy/flutter_${{ matrix.type }}.7z
10 changes: 5 additions & 5 deletions .github/workflows/flutter-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
type: [windows, web, winuwp]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 2

- name: Setup msbuild
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce

- name: Setup flutter
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
with:
channel: 'dev'

Expand All @@ -63,7 +63,7 @@ jobs:
run: flutter config --enable-windows-desktop

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
if: matrix.type == 'windows'
with:
path: |
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Upload ${{ matrix.type }}
if: success()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: ${{ matrix.type }}_flutter_${{ github.event.pull_request.head.sha }}
path: deploy/flutter_${{ matrix.type }}.7z
Loading

0 comments on commit cc4ee2c

Please sign in to comment.