Skip to content

Commit f7c2840

Browse files
authored
First pass patch
1 parent 8a7f924 commit f7c2840

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: create-release
22
on:
3+
workflow_dispatch:
34
push:
45
# branches: [ master ]
56
tags:
@@ -10,14 +11,14 @@ jobs:
1011
name: build
1112
runs-on: ${{ matrix.os }}
1213
steps:
13-
- if: ${{ matrix.os == 'windows-2019' }}
14+
- if: ${{ matrix.os == 'windows-latest' }}
1415
uses: actions/cache@v2
1516
with:
1617
path: ~\AppData\Local\pip\Cache
1718
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
1819
restore-keys: |
1920
${{ runner.os }}-pip-
20-
- if: ${{ matrix.os == 'macos-10.15' }}
21+
- if: ${{ matrix.os == 'macos-13' }}
2122
uses: actions/cache@v2
2223
with:
2324
path: ~/Library/Caches/pip
@@ -29,22 +30,23 @@ jobs:
2930
with:
3031
architecture: x64
3132
python-version: ${{ matrix.python-version }}
32-
- uses: actions/setup-java@v1
33+
- uses: actions/setup-java@v3
3334
with:
34-
java-version: '14.0.1' # The JDK version to make available on the path.
35+
distribution: "temurin"
36+
java-version: "11.0.20+8" # The JDK version to make available on the path.
3537
java-package: jdk
3638
architecture: x64
3739
- run: |
3840
pip install --upgrade pip setuptools wheel
3941
pip install numpy
40-
pip install pyinstaller==4.3
42+
pip install pyinstaller==4.10
4143
- env:
4244
LDFLAGS: -L/usr/local/opt/openssl/lib
4345
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }}
4446
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
45-
if: ${{ matrix.os == 'macos-10.15' }}
47+
if: ${{ matrix.os == 'macos-13' }}
4648
run: |
47-
sed -i '' 's/4.0.0/3.0.4/' Info.plist
49+
sed -i '' 's/4.0.0/3.0.4.1/' Info.plist
4850
brew install mysql
4951
git clone https://github.com/CellProfiler/python-javabridge.git
5052
cd python-javabridge/
@@ -57,28 +59,28 @@ jobs:
5759
ditto -ck --keepParent --rsrc --sequesterRsrc ./dist/CellProfiler-Analyst.app ./dist/CellProfiler-Analyst-macOS-3.0.4.zip
5860
working-directory: ./distribution/macos
5961
- env:
60-
JDK_HOME: C:\hostedtoolcache\windows\jdk\14.0.1\x64
61-
if: ${{ matrix.os == 'windows-2019' }}
62+
JDK_HOME: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.20-8\x64
63+
if: ${{ matrix.os == 'windows-latest' }}
6264
run: |
6365
pip install cython
6466
pip install --editable .
65-
- if: ${{ matrix.os == 'windows-2019' }}
67+
- if: ${{ matrix.os == 'windows-latest' }}
6668
run: |
6769
pyinstaller distribution/windows/CellProfiler-Analyst.spec
68-
iscc /dMyAppVersion="3.0.4" "distribution/windows/CellProfiler-Analyst.iss"
69-
- if: ${{ matrix.os == 'macos-10.15' }}
70+
iscc /dMyAppVersion="3.0.4.1" "distribution/windows/CellProfiler-Analyst.iss"
71+
- if: ${{ matrix.os == 'macos-13' }}
7072
uses: actions/upload-artifact@v1
7173
with:
72-
name: CellProfiler-Analyst-macOS-3.0.4.zip
73-
path: ./distribution/macos/dist/CellProfiler-Analyst-macOS-3.0.4.zip
74-
- if: ${{ matrix.os == 'windows-2019' }}
74+
name: CellProfiler-Analyst-macOS-3.0.4.1.zip
75+
path: ./distribution/macos/dist/CellProfiler-Analyst-macOS-3.0.4.1.zip
76+
- if: ${{ matrix.os == 'windows-latest' }}
7577
uses: actions/upload-artifact@v2
7678
with:
77-
name: CellProfiler-Analyst-Windows-3.0.4.exe
78-
path: ./distribution/windows/Output/CellProfiler-Analyst-Windows-3.0.4.exe
79+
name: CellProfiler-Analyst-Windows-3.0.4.1.exe
80+
path: ./distribution/windows/Output/CellProfiler-Analyst-Windows-3.0.4.1.exe
7981
strategy:
8082
matrix:
81-
os: [macos-10.15, windows-2019]
83+
os: [macos-13, windows-latest]
8284
python-version: [ "3.8" ]
8385
upload:
8486
name: upload
@@ -97,25 +99,25 @@ jobs:
9799
tag_name: ${{ github.ref }}
98100
- uses: actions/download-artifact@v1
99101
with:
100-
name: CellProfiler-Analyst-macOS-3.0.4.zip
102+
name: CellProfiler-Analyst-macOS-3.0.4.1.zip
101103
path: ./
102104
- uses: actions/download-artifact@v1
103105
with:
104-
name: CellProfiler-Analyst-Windows-3.0.4.exe
106+
name: CellProfiler-Analyst-Windows-3.0.4.1.exe
105107
path: ./
106108
- env:
107109
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108110
uses: actions/upload-release-asset@v1
109111
with:
110112
asset_content_type: application/zip
111-
asset_name: CellProfiler-Analyst-macOS-3.0.4.zip
112-
asset_path: /home/runner/work/CellProfiler-Analyst/CellProfiler-Analyst/CellProfiler-Analyst-macOS-3.0.4.zip
113+
asset_name: CellProfiler-Analyst-macOS-3.0.4.1.zip
114+
asset_path: /home/runner/work/CellProfiler-Analyst/CellProfiler-Analyst/CellProfiler-Analyst-macOS-3.0.4.1.zip
113115
upload_url: ${{ steps.create_release.outputs.upload_url }}
114116
- env:
115117
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116118
uses: actions/upload-release-asset@v1
117119
with:
118120
asset_content_type: application/exe
119-
asset_name: CellProfiler-Analyst-Windows-3.0.4.exe
120-
asset_path: /home/runner/work/CellProfiler-Analyst/CellProfiler-Analyst/CellProfiler-Analyst-Windows-3.0.4.exe
121+
asset_name: CellProfiler-Analyst-Windows-3.0.4.1.exe
122+
asset_path: /home/runner/work/CellProfiler-Analyst/CellProfiler-Analyst/CellProfiler-Analyst-Windows-3.0.4.1.exe
121123
upload_url: ${{ steps.create_release.outputs.upload_url }}

0 commit comments

Comments
 (0)