Skip to content

Commit 5a3a74c

Browse files
authored
Copy-paste better
1 parent 4749978 commit 5a3a74c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ jobs:
4040
pip install --upgrade pip setuptools wheel
4141
pip install numpy==1.23.1 matplotlib==3.1.3
4242
pip install pyinstaller==4.10
43+
# this is a separate step because we need to set the CPPFLAGS and LDFLAGS env variables *after* installing mysql, in the next step
44+
- if: ${{ matrix.os == 'macos-13' }}
45+
run: |
46+
brew install mysql@8.0
47+
# needed for mysql@8.0
48+
# must be run PRIOR to the step its accessed
49+
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
50+
echo "/usr/local/opt/mysql@8.0/bin" >> $GITHUB_PATH
4351
- env:
4452
LDFLAGS: "-L/usr/local/opt/mysql@8.0/lib -L/usr/local/opt/openssl/lib"
4553
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }}
@@ -50,14 +58,6 @@ jobs:
5058
if: ${{ matrix.os == 'macos-13' }}
5159
run: |
5260
sed -i '' 's/4.0.0/3.0.4.1/' Info.plist
53-
brew install mysql@8.0
54-
# needed for mysql@8.0
55-
# must be run PRIOR to the step its accessed
56-
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
57-
echo "/usr/local/opt/mysql@8.0/bin" >> $GITHUB_PATH
58-
if: ${{ matrix.os == 'macos-13' }}
59-
working-directory: ./distribution/macos
60-
run: |
6161
make
6262
chmod +x add-osx-certificate.sh && ./add-osx-certificate.sh
6363
chmod +x osx-codesign.sh && ./osx-codesign.sh

0 commit comments

Comments
 (0)