Skip to content
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
35 changes: 26 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout repo'
uses: actions/checkout@v5
uses: actions/checkout@v7

- name: 'ACTUALLY get tags'
run: git fetch --force --tag
Expand All @@ -79,7 +79,7 @@ jobs:
install-args: --skip-subprojects

- name: Upload Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ runner.os }}-${{ matrix.maya }}-plugin
path: output_Maya${{ matrix.maya }}/*.${{ steps.get-devkit.outputs.plugin-ext }}
Expand All @@ -97,14 +97,14 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout repo'
uses: actions/checkout@v5
uses: actions/checkout@v7

- name: 'ACTUALLY get tags'
run: git fetch --force --tags origin

- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
uses: "WyriHaximus/github-action-get-previous-tag@v2"
with:
fallback: v0.0.1

Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
echo "PLAT_TAG=win_amd64" >> $GITHUB_ENV

- name: Get an older python version
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: ${{ env.PY_VER }}

Expand All @@ -154,27 +154,44 @@ jobs:
python -m wheel tags --remove --python-tag ${{ env.PY_VER_FLAT }} --abi-tag abi3 --platform-tag ${{ env.PLAT_TAG }} ${PY_WHEEL}
done

- name: Upload Artifacts
uses: actions/upload-artifact@v4
- name: Extract Compiled Module Files From Wheel
shell: bash
run: |
mkdir -p wheel_extract pyModule
for PY_WHEEL in dist/*.whl
do
python -m zipfile -e "${PY_WHEEL}" wheel_extract/
done
find wheel_extract -type f \( -name '*.pyd' -o -name '*.so' \) -exec cp {} pyModule/ \;

- name: Upload Wheel Artifacts
uses: actions/upload-artifact@v7
with:
name: ${{ runner.os }}-wheels
path: dist/*.whl
if-no-files-found: error

- name: Upload Module Artifacts
uses: actions/upload-artifact@v7
with:
name: ${{ runner.os }}-pyModule
path: pyModule
if-no-files-found: error

upload_release:
name: Upload release
needs: [compile_plugin, compile_python]
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
uses: actions/checkout@v7

- name: 'ACTUALLY get tags'
run: git fetch --force --tags origin

- name: Get Previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
uses: "WyriHaximus/github-action-get-previous-tag@v2"
with:
fallback: v0.0.1

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ build-backend = "mesonpy"
requires = ["meson-python>=0.15.0", "meson >= 1.6.0"]

[tool.meson-python.args]
setup = ['-Dmaya_build=false', '-Dpython_build=true', '-Dpython_wheel_build=true']
setup = ['-Dmaya_build=false', '-Dpython_build=true', '-Dpython_wheel_build=true', '--vsenv']
install = ['--skip-subprojects']

[tool.ruff]
Expand Down
Loading