Skip to content

Commit 609921d

Browse files
committed
Update workflows to use actions/setup-python@v5 and upgrade Python version to 3.12
1 parent aceaa5a commit 609921d

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.github/workflows/linux.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ jobs:
2626
echo "Invalid branch : ${{github.ref_name}}"
2727
exit 1
2828
fi
29-
- uses: conda-incubator/setup-miniconda@v3
29+
- uses: actions/setup-python@v5
3030
with:
31-
activate-environment: oe-python-plugin
32-
python-version: "3.10"
33-
auto-activate-base: false
31+
python-version: '3.12'
3432
- name: setup
3533
run: |
3634
sudo apt update
@@ -42,7 +40,7 @@ jobs:
4240
run: |
4341
conda env list
4442
cd Build
45-
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DPython_ROOT_DIR="$CONDA/envs/oe-python-plugin" -DCOPY_PYTHON_DL=ON ..
43+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCOPY_PYTHON_DL=ON ..
4644
make
4745
# - name: test
4846
# run: cd build && ctest
@@ -60,7 +58,7 @@ jobs:
6058
zipfile=${package}_${new_plugin_ver}.zip
6159
echo "zipfile=${zipfile}" >> $GITHUB_ENV
6260
zip -r -X $zipfile plugins shared
63-
- uses: actions/upload-artifact@v3
61+
- uses: actions/upload-artifact@v4
6462
with:
6563
name: ${{ env.zipfile }}
6664
path: ${{ env.zipfile }}

.github/workflows/mac.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: build
4141
run: |
4242
cd Build
43-
cmake -G "Xcode" -DPython_ROOT_DIR="${{ env.pythonLocation }}" -DCOPY_PYTHON_DL=ON ..
43+
cmake -G "Xcode" -DCOPY_PYTHON_DL=ON ..
4444
xcodebuild -configuration Release
4545
# - name: test
4646
# run: cd build && ctest
@@ -75,6 +75,7 @@ jobs:
7575
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
7676
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_CI_KEYCHAIN_PWD build.keychain
7777
/usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" -v plugins/python-processor.bundle --deep --strict --timestamp --options=runtime
78+
/usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" -v shared/libpython3.12.dylib --deep --strict --timestamp --options=runtime
7879
7980
/usr/bin/codesign -dv --verbose=4 plugins/python-processor.bundle
8081

.github/workflows/windows.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ jobs:
2929
exit 1
3030
fi
3131
shell: bash
32-
- uses: conda-incubator/setup-miniconda@v3
32+
- uses: actions/setup-python@v5
3333
with:
34-
activate-environment: oe-python-plugin
35-
python-version: "3.10"
36-
auto-activate-base: false
34+
python-version: '3.12'
3735
- name: setup
3836
run: |
3937
cd ../..
@@ -47,10 +45,10 @@ jobs:
4745
- name: configure
4846
run: |
4947
cd Build
50-
cmake -G "Visual Studio 17 2022" -A x64 -DPython_ROOT_DIR="$CONDA/envs/oe-python-plugin" -DCOPY_PYTHON_DL=ON ..
48+
cmake -G "Visual Studio 17 2022" -A x64 -DCOPY_PYTHON_DL=ON ..
5149
shell: bash
5250
- name: Add msbuild to PATH
53-
uses: microsoft/setup-msbuild@v1.1
51+
uses: microsoft/setup-msbuild@v2
5452
- name: build-plugin
5553
run: |
5654
cd Build
@@ -75,7 +73,7 @@ jobs:
7573
powershell Compress-Archive -Path "plugins" -DestinationPath ${zipfile}
7674
powershell Compress-Archive -U -Path "shared" -DestinationPath ${zipfile}
7775
shell: bash
78-
- uses: actions/upload-artifact@v3
76+
- uses: actions/upload-artifact@v4
7977
with:
8078
name: ${{ env.zipfile }}
8179
path: ${{ env.zipfile }}

0 commit comments

Comments
 (0)