Update github workflows (#1975)
This commit is contained in:
10
.github/workflows/Crate-publishing.yml
vendored
10
.github/workflows/Crate-publishing.yml
vendored
@@ -46,14 +46,10 @@ jobs:
|
|||||||
name: 'macOS x86_64'
|
name: 'macOS x86_64'
|
||||||
}
|
}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: '🛠️ Set up Rust'
|
- name: '🛠️ Set up Rust'
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
default: true
|
|
||||||
|
|
||||||
- name: '🛠️ Activate Developer Command Prompt'
|
- name: '🛠️ Activate Developer Command Prompt'
|
||||||
if: contains(matrix.config.os, 'win')
|
if: contains(matrix.config.os, 'win')
|
||||||
@@ -71,7 +67,7 @@ jobs:
|
|||||||
if: contains(matrix.config.os, 'macOS')
|
if: contains(matrix.config.os, 'macOS')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install p7zip cmake ninja pkg-config
|
brew install ninja
|
||||||
|
|
||||||
- name: '🚧 Cargo test'
|
- name: '🚧 Cargo test'
|
||||||
if: "!startsWith(github.ref, 'refs/tags')"
|
if: "!startsWith(github.ref, 'refs/tags')"
|
||||||
|
|||||||
26
.github/workflows/Nuget-publishing.yml
vendored
26
.github/workflows/Nuget-publishing.yml
vendored
@@ -55,11 +55,11 @@ jobs:
|
|||||||
}
|
}
|
||||||
compiler: [ gcc ]
|
compiler: [ gcc ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: '🛠️ Win MSVC 64 setup'
|
- name: '🛠️ Win MSVC 64 setup'
|
||||||
if: contains(matrix.config.name, 'MSVC 64')
|
if: contains(matrix.config.name, 'MSVC 64')
|
||||||
uses: microsoft/setup-msbuild@v1
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
- name: '🛠️ Win MSVC 64 dev cmd setup'
|
- name: '🛠️ Win MSVC 64 dev cmd setup'
|
||||||
if: contains(matrix.config.name, 'MSVC 64')
|
if: contains(matrix.config.name, 'MSVC 64')
|
||||||
@@ -126,7 +126,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '📤 Upload artifact'
|
- name: '📤 Upload artifact'
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./${{ matrix.config.artifact }}
|
path: ./${{ matrix.config.artifact }}
|
||||||
name: ${{ matrix.config.artifact }}
|
name: ${{ matrix.config.artifact }}
|
||||||
@@ -152,13 +152,13 @@ jobs:
|
|||||||
}
|
}
|
||||||
compiler: [ gcc ]
|
compiler: [ gcc ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: '🚧 Mac build'
|
- name: '🚧 Mac build'
|
||||||
if: contains(matrix.config.name, 'macos-x64')
|
if: contains(matrix.config.name, 'macos-x64')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install p7zip cmake ninja pkg-config
|
brew install ninja
|
||||||
ninja --version
|
ninja --version
|
||||||
cmake --version
|
cmake --version
|
||||||
mkdir build
|
mkdir build
|
||||||
@@ -184,7 +184,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '📤 Upload artifact'
|
- name: '📤 Upload artifact'
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./${{ matrix.config.artifact }}
|
path: ./${{ matrix.config.artifact }}
|
||||||
name: ${{ matrix.config.artifact }}
|
name: ${{ matrix.config.artifact }}
|
||||||
@@ -246,7 +246,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
compiler: [ gcc ]
|
compiler: [ gcc ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: '🚧 Linux x64/x86 build'
|
- name: '🚧 Linux x64/x86 build'
|
||||||
if: contains(matrix.config.arch, 'x64') || contains(matrix.config.arch, 'x86')
|
if: contains(matrix.config.arch, 'x64') || contains(matrix.config.arch, 'x86')
|
||||||
@@ -276,7 +276,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '🚧 Linux ppc64le/aarch64 build'
|
- name: '🚧 Linux ppc64le/aarch64 build'
|
||||||
if: contains(matrix.config.arch, 'ppc64le') || contains(matrix.config.arch, 'aarch64')
|
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:
|
with:
|
||||||
arch: ${{ matrix.config.arch }}
|
arch: ${{ matrix.config.arch }}
|
||||||
distro: ${{ matrix.config.distro }}
|
distro: ${{ matrix.config.distro }}
|
||||||
@@ -310,7 +310,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '📤 Upload artifact'
|
- name: '📤 Upload artifact'
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./${{ matrix.config.artifact }}
|
path: ./${{ matrix.config.artifact }}
|
||||||
name: ${{ matrix.config.artifact }}
|
name: ${{ matrix.config.artifact }}
|
||||||
@@ -321,10 +321,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 🛠️ Download artifacts
|
- name: 🛠️ Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
@@ -404,7 +404,7 @@ jobs:
|
|||||||
id: git_short_sha
|
id: git_short_sha
|
||||||
run: echo "result=$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
|
run: echo "result=$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: actions/setup-dotnet@v3
|
- uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
|
|
||||||
@@ -424,7 +424,7 @@ jobs:
|
|||||||
|| dotnet pack -c Release --version-suffix="${{ steps.git_short_sha.outputs.result }}"
|
|| dotnet pack -c Release --version-suffix="${{ steps.git_short_sha.outputs.result }}"
|
||||||
|
|
||||||
- name: '📤 Upload artifact'
|
- name: '📤 Upload artifact'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/bindings/dotnet/UnicornEngine/bin/Release/UnicornEngine.Unicorn.*.nupkg
|
path: ${{ github.workspace }}/bindings/dotnet/UnicornEngine/bin/Release/UnicornEngine.Unicorn.*.nupkg
|
||||||
|
|
||||||
|
|||||||
15
.github/workflows/PyPI-publishing.yml
vendored
15
.github/workflows/PyPI-publishing.yml
vendored
@@ -71,7 +71,7 @@ jobs:
|
|||||||
name: 'macos_aarch64'
|
name: 'macos_aarch64'
|
||||||
}
|
}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: '🛠️ Set up Python'
|
- name: '🛠️ Set up Python'
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '🛠️ Add msbuild to PATH'
|
- name: '🛠️ Add msbuild to PATH'
|
||||||
if: contains(matrix.config.name, 'win')
|
if: contains(matrix.config.name, 'win')
|
||||||
uses: microsoft/setup-msbuild@v1.0.3
|
uses: microsoft/setup-msbuild@v2
|
||||||
with:
|
with:
|
||||||
vs-version: '16.5'
|
vs-version: '16.5'
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ jobs:
|
|||||||
- name: '🛠️ macOS dependencies'
|
- name: '🛠️ macOS dependencies'
|
||||||
if: contains(matrix.config.name, 'macos')
|
if: contains(matrix.config.name, 'macos')
|
||||||
run: |
|
run: |
|
||||||
brew install p7zip cmake ninja pkg-config
|
brew install ninja
|
||||||
|
|
||||||
- name: '🛠️ pip dependencies'
|
- name: '🛠️ pip dependencies'
|
||||||
run: |
|
run: |
|
||||||
@@ -135,8 +135,9 @@ jobs:
|
|||||||
cd bindings/python && python setup.py bdist_wheel
|
cd bindings/python && python setup.py bdist_wheel
|
||||||
fi
|
fi
|
||||||
- name: '📤 Upload artifact'
|
- name: '📤 Upload artifact'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: ${{ matrix.config.name }}
|
||||||
path: ${{ github.workspace }}/bindings/python/dist/*
|
path: ${{ github.workspace }}/bindings/python/dist/*
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
@@ -144,13 +145,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
if: startsWith(github.ref, 'refs/tags')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifact
|
merge-multiple: true
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
- name: '📦 Publish distribution to PyPI'
|
- name: '📦 Publish distribution to PyPI'
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
user: __token__
|
user: __token__
|
||||||
password: ${{ secrets.pypi_pass }}
|
password: ${{ secrets.pypi_pass }}
|
||||||
|
|||||||
28
.github/workflows/build-uc2.yml
vendored
28
.github/workflows/build-uc2.yml
vendored
@@ -135,7 +135,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
compiler: [ gcc ]
|
compiler: [ gcc ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: '🛠️ Win MINGW setup'
|
- name: '🛠️ Win MINGW setup'
|
||||||
if: contains(matrix.config.mingw, 'MINGW')
|
if: contains(matrix.config.mingw, 'MINGW')
|
||||||
@@ -152,7 +152,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '🛠️ Win MSVC 64 setup'
|
- name: '🛠️ Win MSVC 64 setup'
|
||||||
if: contains(matrix.config.name, 'MSVC 64')
|
if: contains(matrix.config.name, 'MSVC 64')
|
||||||
uses: microsoft/setup-msbuild@v1
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
- name: '🛠️ Win MSVC 64 dev cmd setup'
|
- name: '🛠️ Win MSVC 64 dev cmd setup'
|
||||||
if: contains(matrix.config.name, 'MSVC 64')
|
if: contains(matrix.config.name, 'MSVC 64')
|
||||||
@@ -245,7 +245,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '📤 Upload artifact'
|
- name: '📤 Upload artifact'
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./${{ matrix.config.artifact }}
|
path: ./${{ matrix.config.artifact }}
|
||||||
name: ${{ matrix.config.artifact }}
|
name: ${{ matrix.config.artifact }}
|
||||||
@@ -306,7 +306,7 @@ jobs:
|
|||||||
generators: 'Ninja'
|
generators: 'Ninja'
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: macos-11,
|
os: macos-12,
|
||||||
arch: x86_64,
|
arch: x86_64,
|
||||||
python-arch: x86_64,
|
python-arch: x86_64,
|
||||||
python-ver: '3.8',
|
python-ver: '3.8',
|
||||||
@@ -318,10 +318,10 @@ jobs:
|
|||||||
}
|
}
|
||||||
compiler: [ gcc ]
|
compiler: [ gcc ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: '🛠️ Python setup'
|
# - name: '🛠️ Python setup'
|
||||||
# uses: actions/setup-python@v2
|
# uses: actions/setup-python@v5
|
||||||
# with:
|
# with:
|
||||||
# python-version: ${{ matrix.config.python-ver }}
|
# python-version: ${{ matrix.config.python-ver }}
|
||||||
|
|
||||||
@@ -329,7 +329,7 @@ jobs:
|
|||||||
if: contains(matrix.config.name, 'macos')
|
if: contains(matrix.config.name, 'macos')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install p7zip cmake ninja pkg-config
|
brew install ninja
|
||||||
ninja --version
|
ninja --version
|
||||||
cmake --version
|
cmake --version
|
||||||
mkdir build
|
mkdir build
|
||||||
@@ -353,7 +353,7 @@ jobs:
|
|||||||
if: contains(matrix.config.name, 'android')
|
if: contains(matrix.config.name, 'android')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install p7zip cmake ninja pkg-config
|
brew install ninja
|
||||||
mkdir build
|
mkdir build
|
||||||
mkdir instdir
|
mkdir instdir
|
||||||
cmake . -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake" \
|
cmake . -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake" \
|
||||||
@@ -372,7 +372,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '🚧 AVD Cache'
|
- name: '🚧 AVD Cache'
|
||||||
if: contains(matrix.config.name, 'android')
|
if: contains(matrix.config.name, 'android')
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
id: avd-cache
|
id: avd-cache
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@@ -416,7 +416,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '📤 Upload artifact'
|
- name: '📤 Upload artifact'
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./${{ matrix.config.artifact }}
|
path: ./${{ matrix.config.artifact }}
|
||||||
name: ${{ matrix.config.artifact }}
|
name: ${{ matrix.config.artifact }}
|
||||||
@@ -502,10 +502,10 @@ jobs:
|
|||||||
}
|
}
|
||||||
compiler: [ gcc ]
|
compiler: [ gcc ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: '🛠️ Python setup'
|
# - name: '🛠️ Python setup'
|
||||||
# uses: actions/setup-python@v2
|
# uses: actions/setup-python@v5
|
||||||
# with:
|
# with:
|
||||||
# python-version: ${{ matrix.config.python-ver }}
|
# python-version: ${{ matrix.config.python-ver }}
|
||||||
|
|
||||||
@@ -536,7 +536,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '🚧 Linux ppc64le/aarch64 build'
|
- name: '🚧 Linux ppc64le/aarch64 build'
|
||||||
if: contains(matrix.config.arch, 'ppc64le') || contains(matrix.config.arch, 'aarch64')
|
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:
|
with:
|
||||||
arch: ${{ matrix.config.arch }}
|
arch: ${{ matrix.config.arch }}
|
||||||
distro: ${{ matrix.config.distro }}
|
distro: ${{ matrix.config.distro }}
|
||||||
@@ -570,7 +570,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '📤 Upload artifact'
|
- name: '📤 Upload artifact'
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./${{ matrix.config.artifact }}
|
path: ./${{ matrix.config.artifact }}
|
||||||
name: ${{ matrix.config.artifact }}
|
name: ${{ matrix.config.artifact }}
|
||||||
2
.github/workflows/prerelease.yml
vendored
2
.github/workflows/prerelease.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
run: mkdir artifact
|
run: mkdir artifact
|
||||||
working-directory: ./
|
working-directory: ./
|
||||||
|
|
||||||
- uses: dawidd6/action-download-artifact@v2
|
- uses: dawidd6/action-download-artifact@v6
|
||||||
id: download-artifact
|
id: download-artifact
|
||||||
with:
|
with:
|
||||||
workflow: build-uc2.yml
|
workflow: build-uc2.yml
|
||||||
|
|||||||
6
.github/workflows/zigbuild.yml
vendored
6
.github/workflows/zigbuild.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
runs-on: ${{ matrix.runs-on }}
|
runs-on: ${{ matrix.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
runs-on: [macos-latest]
|
runs-on: [macos-latest]
|
||||||
runs-on: ${{ matrix.runs-on }}
|
runs-on: ${{ matrix.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
# matrix:
|
# matrix:
|
||||||
# include: [{ msystem: CLANG64, arch: x86_64, prefix: /clang64 }, { msystem: CLANG32, arch: i686, prefix: /clang32 }, { msystem: CLANGARM64, arch: aarch64, prefix: /clangarm64 }]
|
# include: [{ msystem: CLANG64, arch: x86_64, prefix: /clang64 }, { msystem: CLANG32, arch: i686, prefix: /clang32 }, { msystem: CLANGARM64, arch: aarch64, prefix: /clangarm64 }]
|
||||||
# steps:
|
# steps:
|
||||||
# - uses: actions/checkout@v3
|
# - uses: actions/checkout@v4
|
||||||
# with:
|
# with:
|
||||||
# path: temp
|
# path: temp
|
||||||
# submodules: recursive
|
# submodules: recursive
|
||||||
|
|||||||
Reference in New Issue
Block a user