Update github workflows (#1975)

This commit is contained in:
scribam 2024-07-19 05:06:53 +02:00 committed by GitHub
parent 7d8b06b704
commit feb166d475
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 44 additions and 47 deletions

View File

@ -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')"

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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

View File

@ -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

View File

@ -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