Skip to content

Commit 38e43c0

Browse files
authored
Merge pull request #53 from Artoria2e5/patch-3
Update macOS naming to use CPU architecture; replace runner that will stop working in two weeks
2 parents adf86f0 + 6ae96f8 commit 38e43c0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,18 @@ jobs:
154154
runs-on: ${{ matrix.os }}
155155
strategy:
156156
matrix:
157-
os: [macos-13, macos-14]
157+
os: [macos-14, macos-15-intel]
158158
fail-fast: false
159159
env:
160160
CC: clang
161161
CPP: clang++
162162
# needed for Homebrew 4.6.4 and above
163163
HOMEBREW_DEVELOPER: '1'
164+
# Used by CI workflow file. For mapping from "runs-on" / "os" to architecture, see:
165+
# https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job#standard-github-hosted-runners-for-public-repositories
166+
SELFARCH: ${{ matrix.os == 'macos-15-intel' && 'X64' || 'ARM64' }}
167+
# Just because we use a new builder doesn't mean we don't want the build to run on an older OS
168+
MACOSX_DEPLOYMENT_TARGET: 11.0.0
164169
steps:
165170
- uses: actions/checkout@v4
166171

@@ -196,7 +201,7 @@ jobs:
196201
- name: Upload build artifacts
197202
uses: actions/upload-artifact@v4
198203
with:
199-
name: mfakto-${{ matrix.os }}
204+
name: mfakto-macos-${{ env.SELFARCH }}
200205
path: |
201206
*.cl
202207
Changelog-mfakto.txt
@@ -212,11 +217,11 @@ jobs:
212217
- name: Create artifacts and release assets
213218
if: startsWith(github.ref, 'refs/tags/')
214219
run: |
215-
tar cvjf mfakto-${{ matrix.os }}.tar.bz2 *.cl Changelog-mfakto.txt COPYING datatypes.h mfakto mfakto.ini README-SpecialVersions.txt README.txt tf_debug.h todo.txt
220+
tar cvjf mfakto-macos-${{ env.SELFARCH }}.tar.bz2 *.cl Changelog-mfakto.txt COPYING datatypes.h mfakto mfakto.ini README-SpecialVersions.txt README.txt tf_debug.h todo.txt
216221
217222
- name: Release
218223
uses: softprops/action-gh-release@v2
219224
if: startsWith(github.ref, 'refs/tags/')
220225
with:
221226
files: |
222-
mfakto-${{ matrix.os }}.tar.bz2
227+
mfakto-macos-${{ env.SELFARCH }}.tar.bz2

0 commit comments

Comments
 (0)