Skip to content

Commit feb166d

Browse files
authored
Update github workflows (#1975)
1 parent 7d8b06b commit feb166d

7 files changed

+44
-47
lines changed

.github/workflows/Crate-publishing.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,10 @@ jobs:
4646
name: 'macOS x86_64'
4747
}
4848
steps:
49-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v4
5050

5151
- name: '🛠️ Set up Rust'
52-
uses: actions-rs/toolchain@v1
53-
with:
54-
toolchain: stable
55-
override: true
56-
default: true
52+
uses: dtolnay/rust-toolchain@stable
5753

5854
- name: '🛠️ Activate Developer Command Prompt'
5955
if: contains(matrix.config.os, 'win')
@@ -71,7 +67,7 @@ jobs:
7167
if: contains(matrix.config.os, 'macOS')
7268
shell: bash
7369
run: |
74-
brew install p7zip cmake ninja pkg-config
70+
brew install ninja
7571
7672
- name: '🚧 Cargo test'
7773
if: "!startsWith(github.ref, 'refs/tags')"

.github/workflows/Nuget-publishing.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ jobs:
5555
}
5656
compiler: [ gcc ]
5757
steps:
58-
- uses: actions/checkout@v2
58+
- uses: actions/checkout@v4
5959

6060
- name: '🛠️ Win MSVC 64 setup'
6161
if: contains(matrix.config.name, 'MSVC 64')
62-
uses: microsoft/setup-msbuild@v1
62+
uses: microsoft/setup-msbuild@v2
6363

6464
- name: '🛠️ Win MSVC 64 dev cmd setup'
6565
if: contains(matrix.config.name, 'MSVC 64')
@@ -126,7 +126,7 @@ jobs:
126126
127127
- name: '📤 Upload artifact'
128128
if: always()
129-
uses: actions/upload-artifact@v2
129+
uses: actions/upload-artifact@v4
130130
with:
131131
path: ./${{ matrix.config.artifact }}
132132
name: ${{ matrix.config.artifact }}
@@ -152,13 +152,13 @@ jobs:
152152
}
153153
compiler: [ gcc ]
154154
steps:
155-
- uses: actions/checkout@v2
155+
- uses: actions/checkout@v4
156156

157157
- name: '🚧 Mac build'
158158
if: contains(matrix.config.name, 'macos-x64')
159159
shell: bash
160160
run: |
161-
brew install p7zip cmake ninja pkg-config
161+
brew install ninja
162162
ninja --version
163163
cmake --version
164164
mkdir build
@@ -184,7 +184,7 @@ jobs:
184184
185185
- name: '📤 Upload artifact'
186186
if: always()
187-
uses: actions/upload-artifact@v2
187+
uses: actions/upload-artifact@v4
188188
with:
189189
path: ./${{ matrix.config.artifact }}
190190
name: ${{ matrix.config.artifact }}
@@ -246,7 +246,7 @@ jobs:
246246
}
247247
compiler: [ gcc ]
248248
steps:
249-
- uses: actions/checkout@v2
249+
- uses: actions/checkout@v4
250250

251251
- name: '🚧 Linux x64/x86 build'
252252
if: contains(matrix.config.arch, 'x64') || contains(matrix.config.arch, 'x86')
@@ -276,7 +276,7 @@ jobs:
276276
277277
- name: '🚧 Linux ppc64le/aarch64 build'
278278
if: contains(matrix.config.arch, 'ppc64le') || contains(matrix.config.arch, 'aarch64')
279-
uses: uraimo/run-on-arch-action@v2.0.5
279+
uses: uraimo/run-on-arch-action@v2
280280
with:
281281
arch: ${{ matrix.config.arch }}
282282
distro: ${{ matrix.config.distro }}
@@ -310,7 +310,7 @@ jobs:
310310
311311
- name: '📤 Upload artifact'
312312
if: always()
313-
uses: actions/upload-artifact@v2
313+
uses: actions/upload-artifact@v4
314314
with:
315315
path: ./${{ matrix.config.artifact }}
316316
name: ${{ matrix.config.artifact }}
@@ -321,10 +321,10 @@ jobs:
321321
runs-on: ubuntu-latest
322322

323323
steps:
324-
- uses: actions/checkout@v3
324+
- uses: actions/checkout@v4
325325

326326
- name: 🛠️ Download artifacts
327-
uses: actions/download-artifact@v3
327+
uses: actions/download-artifact@v4
328328
with:
329329
path: artifacts
330330

@@ -404,7 +404,7 @@ jobs:
404404
id: git_short_sha
405405
run: echo "result=$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
406406

407-
- uses: actions/setup-dotnet@v3
407+
- uses: actions/setup-dotnet@v4
408408
with:
409409
dotnet-version: 6.0.x
410410

@@ -424,7 +424,7 @@ jobs:
424424
|| dotnet pack -c Release --version-suffix="${{ steps.git_short_sha.outputs.result }}"
425425
426426
- name: '📤 Upload artifact'
427-
uses: actions/upload-artifact@v2
427+
uses: actions/upload-artifact@v4
428428
with:
429429
path: ${{ github.workspace }}/bindings/dotnet/UnicornEngine/bin/Release/UnicornEngine.Unicorn.*.nupkg
430430

.github/workflows/PyPI-publishing.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
name: 'macos_aarch64'
7272
}
7373
steps:
74-
- uses: actions/checkout@v2
74+
- uses: actions/checkout@v4
7575

7676
- name: '🛠️ Set up Python'
7777
uses: actions/setup-python@v5
@@ -80,7 +80,7 @@ jobs:
8080

8181
- name: '🛠️ Add msbuild to PATH'
8282
if: contains(matrix.config.name, 'win')
83-
uses: microsoft/setup-msbuild@v1.0.3
83+
uses: microsoft/setup-msbuild@v2
8484
with:
8585
vs-version: '16.5'
8686

@@ -105,7 +105,7 @@ jobs:
105105
- name: '🛠️ macOS dependencies'
106106
if: contains(matrix.config.name, 'macos')
107107
run: |
108-
brew install p7zip cmake ninja pkg-config
108+
brew install ninja
109109
110110
- name: '🛠️ pip dependencies'
111111
run: |
@@ -135,22 +135,23 @@ jobs:
135135
cd bindings/python && python setup.py bdist_wheel
136136
fi
137137
- name: '📤 Upload artifact'
138-
uses: actions/upload-artifact@v2
138+
uses: actions/upload-artifact@v4
139139
with:
140+
name: ${{ matrix.config.name }}
140141
path: ${{ github.workspace }}/bindings/python/dist/*
141142

142143
publish:
143144
needs: [build]
144145
runs-on: ubuntu-latest
145146
if: startsWith(github.ref, 'refs/tags')
146147
steps:
147-
- uses: actions/download-artifact@v2
148+
- uses: actions/download-artifact@v4
148149
with:
149-
name: artifact
150+
merge-multiple: true
150151
path: dist
151152

152153
- name: '📦 Publish distribution to PyPI'
153-
uses: pypa/gh-action-pypi-publish@master
154+
uses: pypa/gh-action-pypi-publish@release/v1
154155
with:
155156
user: __token__
156157
password: ${{ secrets.pypi_pass }}

.github/workflows/build-uc2.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
}
136136
compiler: [ gcc ]
137137
steps:
138-
- uses: actions/checkout@v2
138+
- uses: actions/checkout@v4
139139

140140
- name: '🛠️ Win MINGW setup'
141141
if: contains(matrix.config.mingw, 'MINGW')
@@ -152,7 +152,7 @@ jobs:
152152
153153
- name: '🛠️ Win MSVC 64 setup'
154154
if: contains(matrix.config.name, 'MSVC 64')
155-
uses: microsoft/setup-msbuild@v1
155+
uses: microsoft/setup-msbuild@v2
156156

157157
- name: '🛠️ Win MSVC 64 dev cmd setup'
158158
if: contains(matrix.config.name, 'MSVC 64')
@@ -245,7 +245,7 @@ jobs:
245245
246246
- name: '📤 Upload artifact'
247247
if: always()
248-
uses: actions/upload-artifact@v1
248+
uses: actions/upload-artifact@v4
249249
with:
250250
path: ./${{ matrix.config.artifact }}
251251
name: ${{ matrix.config.artifact }}
@@ -306,7 +306,7 @@ jobs:
306306
generators: 'Ninja'
307307
}
308308
- {
309-
os: macos-11,
309+
os: macos-12,
310310
arch: x86_64,
311311
python-arch: x86_64,
312312
python-ver: '3.8',
@@ -318,18 +318,18 @@ jobs:
318318
}
319319
compiler: [ gcc ]
320320
steps:
321-
- uses: actions/checkout@v2
321+
- uses: actions/checkout@v4
322322

323323
# - name: '🛠️ Python setup'
324-
# uses: actions/setup-python@v2
324+
# uses: actions/setup-python@v5
325325
# with:
326326
# python-version: ${{ matrix.config.python-ver }}
327327

328328
- name: '🚧 Mac build'
329329
if: contains(matrix.config.name, 'macos')
330330
shell: bash
331331
run: |
332-
brew install p7zip cmake ninja pkg-config
332+
brew install ninja
333333
ninja --version
334334
cmake --version
335335
mkdir build
@@ -353,7 +353,7 @@ jobs:
353353
if: contains(matrix.config.name, 'android')
354354
shell: bash
355355
run: |
356-
brew install p7zip cmake ninja pkg-config
356+
brew install ninja
357357
mkdir build
358358
mkdir instdir
359359
cmake . -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake" \
@@ -372,7 +372,7 @@ jobs:
372372
373373
- name: '🚧 AVD Cache'
374374
if: contains(matrix.config.name, 'android')
375-
uses: actions/cache@v2
375+
uses: actions/cache@v4
376376
id: avd-cache
377377
with:
378378
path: |
@@ -416,7 +416,7 @@ jobs:
416416
417417
- name: '📤 Upload artifact'
418418
if: always()
419-
uses: actions/upload-artifact@v1
419+
uses: actions/upload-artifact@v4
420420
with:
421421
path: ./${{ matrix.config.artifact }}
422422
name: ${{ matrix.config.artifact }}
@@ -502,10 +502,10 @@ jobs:
502502
}
503503
compiler: [ gcc ]
504504
steps:
505-
- uses: actions/checkout@v2
505+
- uses: actions/checkout@v4
506506

507507
# - name: '🛠️ Python setup'
508-
# uses: actions/setup-python@v2
508+
# uses: actions/setup-python@v5
509509
# with:
510510
# python-version: ${{ matrix.config.python-ver }}
511511

@@ -536,7 +536,7 @@ jobs:
536536
537537
- name: '🚧 Linux ppc64le/aarch64 build'
538538
if: contains(matrix.config.arch, 'ppc64le') || contains(matrix.config.arch, 'aarch64')
539-
uses: uraimo/run-on-arch-action@v2.0.5
539+
uses: uraimo/run-on-arch-action@v2
540540
with:
541541
arch: ${{ matrix.config.arch }}
542542
distro: ${{ matrix.config.distro }}
@@ -570,7 +570,7 @@ jobs:
570570
571571
- name: '📤 Upload artifact'
572572
if: always()
573-
uses: actions/upload-artifact@v1
573+
uses: actions/upload-artifact@v4
574574
with:
575575
path: ./${{ matrix.config.artifact }}
576576
name: ${{ matrix.config.artifact }}

.github/workflows/prerelease.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: Create Release
1818
id: create_release

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: Create Release
1818
id: create_release
@@ -29,7 +29,7 @@ jobs:
2929
run: mkdir artifact
3030
working-directory: ./
3131

32-
- uses: dawidd6/action-download-artifact@v2
32+
- uses: dawidd6/action-download-artifact@v6
3333
id: download-artifact
3434
with:
3535
workflow: build-uc2.yml

.github/workflows/zigbuild.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: [ubuntu-latest]
2323
runs-on: ${{ matrix.runs-on }}
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
with:
2727
submodules: recursive
2828
fetch-depth: 0
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: [macos-latest]
4747
runs-on: ${{ matrix.runs-on }}
4848
steps:
49-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@v4
5050
with:
5151
submodules: recursive
5252
fetch-depth: 0
@@ -74,7 +74,7 @@ jobs:
7474
# matrix:
7575
# include: [{ msystem: CLANG64, arch: x86_64, prefix: /clang64 }, { msystem: CLANG32, arch: i686, prefix: /clang32 }, { msystem: CLANGARM64, arch: aarch64, prefix: /clangarm64 }]
7676
# steps:
77-
# - uses: actions/checkout@v3
77+
# - uses: actions/checkout@v4
7878
# with:
7979
# path: temp
8080
# submodules: recursive

0 commit comments

Comments
 (0)