Skip to content

Commit 8208d6e

Browse files
authored
Change macos version on gh workflow (#194)
1 parent 563ab8a commit 8208d6e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/tagged_release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
os: [ macos-latest, windows-latest, ubuntu-20.04 ]
16+
os: [ macos-12, windows-latest, ubuntu-20.04 ]
1717

1818
steps:
1919
- name: Checkout project
@@ -74,7 +74,7 @@ jobs:
7474
git push origin v${{ github.event.inputs.release_version }}
7575
7676
- name: Download aspect model service into project (Mac)
77-
if: matrix.os == 'macos-latest'
77+
if: matrix.os == 'macos-12'
7878
run: |
7979
mkdir backend
8080
@@ -168,7 +168,7 @@ jobs:
168168
working-directory: core
169169

170170
- name: Set app version (Unix)
171-
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-20.04'
171+
if: matrix.os == 'macos-12' || matrix.os == 'ubuntu-20.04'
172172
run: npm version ${{ github.event.inputs.release_version }}
173173
working-directory: core
174174

@@ -178,7 +178,7 @@ jobs:
178178
working-directory: core
179179

180180
- name: Build electron app (Mac)
181-
if: matrix.os == 'macos-latest'
181+
if: matrix.os == 'macos-12'
182182
run: npm run build:mac:prod
183183
working-directory: core
184184

@@ -202,7 +202,7 @@ jobs:
202202
arguments: "-V3 -DVERSION=${{ github.event.inputs.release_version }}"
203203

204204
- name: Create GitHub release (Mac)
205-
if: ${{ (matrix.os == 'macos-latest') && (!contains( github.ref, '-rc' )) }}
205+
if: ${{ (matrix.os == 'macos-12') && (!contains( github.ref, '-rc' )) }}
206206
uses: svenstaro/upload-release-action@latest
207207
with:
208208
overwrite: true
@@ -212,7 +212,7 @@ jobs:
212212
tag: v${{ github.event.inputs.release_version }}
213213

214214
- name: Create GitHub pre-release (Mac)
215-
if: ${{ (matrix.os == 'macos-latest') && (contains( github.ref, '-rc' )) }}
215+
if: ${{ (matrix.os == 'macos-12') && (contains( github.ref, '-rc' )) }}
216216
uses: svenstaro/upload-release-action@latest
217217
with:
218218
overwrite: true

0 commit comments

Comments
 (0)