Skip to content

Commit 415a4e9

Browse files
committed
ci: Update ci for github action
ci: fix github v3 action replaced by v4 action Signed-off-by: Huaqi Fang <578567190@qq.com> ci: bump to use nuclei qemu 2025.02 for github workflow Signed-off-by: Huaqi Fang <578567190@qq.com> ci: Update branch pattern in github workflow build.yml - Change the branch pattern from `dev_nuclei_next` to `dev_*` - This update will now trigger the workflow on any branch that starts with `dev_` Signed-off-by: Huaqi Fang <578567190@qq.com> ci: add concurrency control to auto-cancel in-progress jobs in build and docker workflows Signed-off-by: Huaqi Fang <578567190@qq.com>
1 parent c63ae44 commit 415a4e9

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

.github/linuxsdk.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ WORKDIR /home/$USER/
5252

5353
RUN mkdir -p prebuilt
5454

55-
RUN wget -q https://nucleisys.com/upload/files/toochain/qemu/nuclei-qemu-$QEMUVER-linux-x64.tar.gz -O prebuilt/nuclei-qemu.tar.gz
55+
RUN wget -q https://download.nucleisys.com/upload/files/toolchain/qemu/nuclei-qemu-$QEMUVER-linux-x64.tar.gz -O prebuilt/nuclei-qemu.tar.gz
5656

5757
RUN cd prebuilt && tar --no-same-owner -xzf nuclei-qemu.tar.gz
5858

.github/workflows/build.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
name: Build and Test Linux SDK
44

5+
# auto cancel previous in-progress job
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
510
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the dev_nuclei_next branch
11+
# events but only for the dev_* branch
712
on:
813
push:
914
branches: [ dev* ]
@@ -20,7 +25,7 @@ jobs:
2025
# This workflow contains a single job called "build"
2126
build:
2227
name: build for ${{ matrix.soc }} - ${{ matrix.core }} - ${{ matrix.boot_mode }}
23-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-22.04
2429
strategy:
2530
matrix:
2631
soc: [evalsoc]
@@ -44,15 +49,15 @@ jobs:
4449
4550
- name: Upload source
4651
if: matrix.core == 'ux900fd' && matrix.boot_mode == 'sd' && matrix.soc == 'evalsoc'
47-
uses: actions/upload-artifact@v3
52+
uses: actions/upload-artifact@v4
4853
with:
4954
name: nuclei_linux_sdk_source
5055
path: source.tar.gz
5156
# continue build on error
5257
continue-on-error: true
5358

5459
- name: Caching packages
55-
uses: actions/cache@v3
60+
uses: actions/cache@v4
5661
with:
5762
path: buildroot/dl
5863
key: build
@@ -67,7 +72,7 @@ jobs:
6772
mkdir -p buildroot/dl
6873
QEMUVER=2023.10
6974
if [ ! -f buildroot/dl/nuclei-qemu-${QEMUVER}-linux-x64.tar.gz ] ; then
70-
wget --progress=dot -P buildroot/dl https://nucleisys.com/upload/files/toochain/qemu/nuclei-qemu-${QEMUVER}-linux-x64.tar.gz
75+
wget --progress=dot -P buildroot/dl https://download.nucleisys.com/upload/files/toolchain/qemu/nuclei-qemu-${QEMUVER}-linux-x64.tar.gz
7176
fi
7277
mkdir -p prebuilt_tools
7378
tar -xzf buildroot/dl/nuclei-qemu-${QEMUVER}-linux-x64.tar.gz -C prebuilt_tools
@@ -120,7 +125,7 @@ jobs:
120125
}
121126
122127
- name: Upload bootimages for ${{ matrix.soc }} - ${{ matrix.core }} - ${{ matrix.boot_mode }}
123-
uses: actions/upload-artifact@v3
128+
uses: actions/upload-artifact@v4
124129
with:
125130
name: bootimages_${{ matrix.soc }}_${{ matrix.core }}_${{ matrix.boot_mode }}
126131
path: |
@@ -129,7 +134,7 @@ jobs:
129134
work/${{ matrix.soc }}/buildstamp.txt
130135
131136
- name: Upload qemu images for ${{ matrix.soc }} - ${{ matrix.core }} - ${{ matrix.boot_mode }}
132-
uses: actions/upload-artifact@v3
137+
uses: actions/upload-artifact@v4
133138
with:
134139
name: qemu_images_${{ matrix.soc }}_${{ matrix.core }}_${{ matrix.boot_mode }}
135140
path: |
@@ -142,7 +147,7 @@ jobs:
142147
143148
- name: Upload cached packages
144149
if: matrix.core == 'ux900fd' && matrix.boot_mode == 'sd' && matrix.soc == 'evalsoc'
145-
uses: actions/upload-artifact@v3
150+
uses: actions/upload-artifact@v4
146151
with:
147152
name: build_caching
148153
path: |

.github/workflows/docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Build Linux SDK Docker Image
22

3+
# auto cancel previous in-progress job
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
38
on:
49
push:
510
branches: [ dev* ]

0 commit comments

Comments
 (0)