From 43e7235d6483a6a5ca3563514a5fb452db8c7efd Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 13 Jul 2024 20:10:08 +0200 Subject: [PATCH] Update github workflows --- .github/workflows/Crate-publishing.yml | 10 +++------ .github/workflows/Nuget-publishing.yml | 26 ++++++++++++------------ .github/workflows/PyPI-publishing.yml | 15 +++++++------- .github/workflows/build-uc2.yml | 28 +++++++++++++------------- .github/workflows/prerelease.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/zigbuild.yml | 6 +++--- 7 files changed, 44 insertions(+), 47 deletions(-) diff --git a/.github/workflows/Crate-publishing.yml b/.github/workflows/Crate-publishing.yml index e20ba1728e..9a7340da8c 100644 --- a/.github/workflows/Crate-publishing.yml +++ b/.github/workflows/Crate-publishing.yml @@ -46,14 +46,10 @@ jobs: name: 'macOS x86_64' } steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: '🛠️ Set up Rust' - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - default: true + uses: dtolnay/rust-toolchain@stable - name: '🛠️ Activate Developer Command Prompt' if: contains(matrix.config.os, 'win') @@ -71,7 +67,7 @@ jobs: if: contains(matrix.config.os, 'macOS') shell: bash run: | - brew install p7zip cmake ninja pkg-config + brew install ninja - name: '🚧 Cargo test' if: "!startsWith(github.ref, 'refs/tags')" diff --git a/.github/workflows/Nuget-publishing.yml b/.github/workflows/Nuget-publishing.yml index 5a6c58155d..3f8b8647d9 100644 --- a/.github/workflows/Nuget-publishing.yml +++ b/.github/workflows/Nuget-publishing.yml @@ -55,11 +55,11 @@ jobs: } compiler: [ gcc ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: '🛠️ Win MSVC 64 setup' if: contains(matrix.config.name, 'MSVC 64') - uses: microsoft/setup-msbuild@v1 + uses: microsoft/setup-msbuild@v2 - name: '🛠️ Win MSVC 64 dev cmd setup' if: contains(matrix.config.name, 'MSVC 64') @@ -126,7 +126,7 @@ jobs: - name: '📤 Upload artifact' if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: ./${{ matrix.config.artifact }} name: ${{ matrix.config.artifact }} @@ -152,13 +152,13 @@ jobs: } compiler: [ gcc ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: '🚧 Mac build' if: contains(matrix.config.name, 'macos-x64') shell: bash run: | - brew install p7zip cmake ninja pkg-config + brew install ninja ninja --version cmake --version mkdir build @@ -184,7 +184,7 @@ jobs: - name: '📤 Upload artifact' if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: ./${{ matrix.config.artifact }} name: ${{ matrix.config.artifact }} @@ -246,7 +246,7 @@ jobs: } compiler: [ gcc ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: '🚧 Linux x64/x86 build' if: contains(matrix.config.arch, 'x64') || contains(matrix.config.arch, 'x86') @@ -276,7 +276,7 @@ jobs: - name: '🚧 Linux ppc64le/aarch64 build' if: contains(matrix.config.arch, 'ppc64le') || contains(matrix.config.arch, 'aarch64') - uses: uraimo/run-on-arch-action@v2.0.5 + uses: uraimo/run-on-arch-action@v2 with: arch: ${{ matrix.config.arch }} distro: ${{ matrix.config.distro }} @@ -310,7 +310,7 @@ jobs: - name: '📤 Upload artifact' if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: ./${{ matrix.config.artifact }} name: ${{ matrix.config.artifact }} @@ -321,10 +321,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: 🛠️ Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts @@ -404,7 +404,7 @@ jobs: id: git_short_sha run: echo "result=$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: 6.0.x @@ -424,7 +424,7 @@ jobs: || dotnet pack -c Release --version-suffix="${{ steps.git_short_sha.outputs.result }}" - name: '📤 Upload artifact' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: ${{ github.workspace }}/bindings/dotnet/UnicornEngine/bin/Release/UnicornEngine.Unicorn.*.nupkg diff --git a/.github/workflows/PyPI-publishing.yml b/.github/workflows/PyPI-publishing.yml index 53df4c9960..d17218539a 100644 --- a/.github/workflows/PyPI-publishing.yml +++ b/.github/workflows/PyPI-publishing.yml @@ -71,7 +71,7 @@ jobs: name: 'macos_aarch64' } steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: '🛠️ Set up Python' uses: actions/setup-python@v5 @@ -80,7 +80,7 @@ jobs: - name: '🛠️ Add msbuild to PATH' if: contains(matrix.config.name, 'win') - uses: microsoft/setup-msbuild@v1.0.3 + uses: microsoft/setup-msbuild@v2 with: vs-version: '16.5' @@ -105,7 +105,7 @@ jobs: - name: '🛠️ macOS dependencies' if: contains(matrix.config.name, 'macos') run: | - brew install p7zip cmake ninja pkg-config + brew install ninja - name: '🛠️ pip dependencies' run: | @@ -135,8 +135,9 @@ jobs: cd bindings/python && python setup.py bdist_wheel fi - name: '📤 Upload artifact' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: + name: ${{ matrix.config.name }} path: ${{ github.workspace }}/bindings/python/dist/* publish: @@ -144,13 +145,13 @@ jobs: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags') steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: - name: artifact + merge-multiple: true path: dist - name: '📦 Publish distribution to PyPI' - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.pypi_pass }} diff --git a/.github/workflows/build-uc2.yml b/.github/workflows/build-uc2.yml index f0677a6329..b5daa35143 100644 --- a/.github/workflows/build-uc2.yml +++ b/.github/workflows/build-uc2.yml @@ -135,7 +135,7 @@ jobs: } compiler: [ gcc ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: '🛠️ Win MINGW setup' if: contains(matrix.config.mingw, 'MINGW') @@ -152,7 +152,7 @@ jobs: - name: '🛠️ Win MSVC 64 setup' if: contains(matrix.config.name, 'MSVC 64') - uses: microsoft/setup-msbuild@v1 + uses: microsoft/setup-msbuild@v2 - name: '🛠️ Win MSVC 64 dev cmd setup' if: contains(matrix.config.name, 'MSVC 64') @@ -245,7 +245,7 @@ jobs: - name: '📤 Upload artifact' if: always() - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: path: ./${{ matrix.config.artifact }} name: ${{ matrix.config.artifact }} @@ -306,7 +306,7 @@ jobs: generators: 'Ninja' } - { - os: macos-11, + os: macos-12, arch: x86_64, python-arch: x86_64, python-ver: '3.8', @@ -318,10 +318,10 @@ jobs: } compiler: [ gcc ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # - name: '🛠️ Python setup' - # uses: actions/setup-python@v2 + # uses: actions/setup-python@v5 # with: # python-version: ${{ matrix.config.python-ver }} @@ -329,7 +329,7 @@ jobs: if: contains(matrix.config.name, 'macos') shell: bash run: | - brew install p7zip cmake ninja pkg-config + brew install ninja ninja --version cmake --version mkdir build @@ -353,7 +353,7 @@ jobs: if: contains(matrix.config.name, 'android') shell: bash run: | - brew install p7zip cmake ninja pkg-config + brew install ninja mkdir build mkdir instdir cmake . -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake" \ @@ -372,7 +372,7 @@ jobs: - name: '🚧 AVD Cache' if: contains(matrix.config.name, 'android') - uses: actions/cache@v2 + uses: actions/cache@v4 id: avd-cache with: path: | @@ -416,7 +416,7 @@ jobs: - name: '📤 Upload artifact' if: always() - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: path: ./${{ matrix.config.artifact }} name: ${{ matrix.config.artifact }} @@ -502,10 +502,10 @@ jobs: } compiler: [ gcc ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # - name: '🛠️ Python setup' - # uses: actions/setup-python@v2 + # uses: actions/setup-python@v5 # with: # python-version: ${{ matrix.config.python-ver }} @@ -536,7 +536,7 @@ jobs: - name: '🚧 Linux ppc64le/aarch64 build' if: contains(matrix.config.arch, 'ppc64le') || contains(matrix.config.arch, 'aarch64') - uses: uraimo/run-on-arch-action@v2.0.5 + uses: uraimo/run-on-arch-action@v2 with: arch: ${{ matrix.config.arch }} distro: ${{ matrix.config.distro }} @@ -570,7 +570,7 @@ jobs: - name: '📤 Upload artifact' if: always() - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: path: ./${{ matrix.config.artifact }} name: ${{ matrix.config.artifact }} \ No newline at end of file diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 0fdc466477..07a863034b 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Create Release id: create_release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4aca9848df..91acbb8e91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Create Release id: create_release @@ -29,7 +29,7 @@ jobs: run: mkdir artifact working-directory: ./ - - uses: dawidd6/action-download-artifact@v2 + - uses: dawidd6/action-download-artifact@v6 id: download-artifact with: workflow: build-uc2.yml diff --git a/.github/workflows/zigbuild.yml b/.github/workflows/zigbuild.yml index 1515cfd977..1cbe22f564 100644 --- a/.github/workflows/zigbuild.yml +++ b/.github/workflows/zigbuild.yml @@ -22,7 +22,7 @@ jobs: runs-on: [ubuntu-latest] runs-on: ${{ matrix.runs-on }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 @@ -46,7 +46,7 @@ jobs: runs-on: [macos-latest] runs-on: ${{ matrix.runs-on }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 @@ -74,7 +74,7 @@ jobs: # matrix: # include: [{ msystem: CLANG64, arch: x86_64, prefix: /clang64 }, { msystem: CLANG32, arch: i686, prefix: /clang32 }, { msystem: CLANGARM64, arch: aarch64, prefix: /clangarm64 }] # steps: - # - uses: actions/checkout@v3 + # - uses: actions/checkout@v4 # with: # path: temp # submodules: recursive