Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github workflows #1975

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/Crate-publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')"
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/Nuget-publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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

Expand Down Expand Up @@ -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

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

Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/PyPI-publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'

Expand All @@ -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: |
Expand Down Expand Up @@ -135,22 +135,23 @@ 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:
needs: [build]
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 }}
28 changes: 14 additions & 14 deletions .github/workflows/build-uc2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
generators: 'Ninja'
}
- {
os: macos-11,
os: macos-12,
arch: x86_64,
python-arch: x86_64,
python-ver: '3.8',
Expand All @@ -318,18 +318,18 @@ 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 }}

- name: '🚧 Mac build'
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
Expand All @@ -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" \
Expand All @@ -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: |
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/zigbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading