Skip to content

Commit 06c6896

Browse files
authored
[Actions] Updating deprecated actions, removing unnecessary checkouts, adding workflow dispatch call (#40)
* Remove unnecessary chechouts * Enabling building on different branches to test it * Updating all actions to Node.js 20 * Updating to v4 * Triggering a template from the development branch * Adding a workflow dispatch call * Adding branch restriction back and using templates from masters
1 parent 9ff7b54 commit 06c6896

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/Build ThunderLibraries on Linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build ThunderLibraries on Linux
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: ["main"]
67
pull_request:

.github/workflows/Linux build template.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ jobs:
1212
matrix:
1313
build_type: [Debug, Release, MinSizeRel]
1414

15+
# ----- Packages & artifacts -----
1516
name: Build type - ${{matrix.build_type}}
1617
steps:
1718
- name: Install necessary packages
18-
uses: nick-fields/retry@v2
19+
uses: nick-fields/retry@v3
1920
with:
2021
timeout_minutes: 10
2122
max_attempts: 10
@@ -27,14 +28,8 @@ jobs:
2728
pip install jsonref
2829
sudo apt install build-essential cmake ninja-build libusb-1.0-0-dev zlib1g-dev libssl-dev
2930
30-
- name: Checkout Thunder
31-
uses: actions/checkout@v3
32-
with:
33-
path: Thunder
34-
repository: rdkcentral/Thunder
35-
3631
- name: Download artifacts
37-
uses: actions/download-artifact@v3
32+
uses: actions/download-artifact@v4
3833
with:
3934
name: Thunder-${{matrix.build_type}}-artifact
4035
path: ${{matrix.build_type}}
@@ -44,8 +39,9 @@ jobs:
4439
tar -xvzf ${{matrix.build_type}}/${{matrix.build_type}}.tar.gz
4540
rm ${{matrix.build_type}}/${{matrix.build_type}}.tar.gz
4641
42+
# ----- Regex & checkout -----
4743
- name: Checkout ThunderLibraries
48-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4945
with:
5046
path: ThunderLibraries
5147
repository: WebPlatformForEmbedded/ThunderLibraries
@@ -59,6 +55,7 @@ jobs:
5955
regex_flags: 'gim'
6056
search_string: ${{github.event.pull_request.body}}
6157

58+
# ----- Building & uploading -----
6259
- name: Build ThunderLibraries
6360
run: |
6461
cmake -G Ninja -S ThunderLibraries -B ${{matrix.build_type}}/build/ThunderLibraries \
@@ -73,7 +70,7 @@ jobs:
7370
run: tar -czvf ${{matrix.build_type}}.tar.gz ${{matrix.build_type}}
7471

7572
- name: Upload
76-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
7774
with:
7875
name: ThunderLibraries-${{matrix.build_type}}-artifact
7976
path: ${{matrix.build_type}}.tar.gz

0 commit comments

Comments
 (0)