Skip to content

Commit 4cc398d

Browse files
committed
ci: drop macos-13 x86_64 build (runner unavailable/deprecated)
1 parent 88debf9 commit 4cc398d

1 file changed

Lines changed: 1 addition & 64 deletions

File tree

.github/workflows/cli-release.yml

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -215,72 +215,9 @@ jobs:
215215
path: monoscope-darwin-arm64.tar.gz
216216
retention-days: 5
217217

218-
build-macos-x64:
219-
name: Build macOS x86_64
220-
needs: build-frontend
221-
runs-on: macos-13
222-
steps:
223-
- uses: actions/checkout@v4
224-
225-
- name: Download frontend artifacts
226-
uses: actions/download-artifact@v8
227-
with:
228-
name: frontend-assets
229-
path: static/public/assets
230-
231-
- name: Install GHC and Cabal
232-
uses: haskell-actions/setup@v2
233-
with:
234-
ghc-version: '9.12.2'
235-
cabal-version: '3.14'
236-
237-
- name: Cache Cabal
238-
uses: actions/cache@v4
239-
with:
240-
path: ~/.cabal
241-
key: cli-macos-x64-cabal-${{ hashFiles('**/*.cabal', '**/cabal.project*') }}
242-
restore-keys: cli-macos-x64-cabal-
243-
244-
- name: Cache dist-newstyle
245-
uses: actions/cache@v4
246-
with:
247-
path: dist-newstyle
248-
key: cli-macos-x64-dist-${{ hashFiles('**/*.cabal', '**/cabal.project*') }}-${{ github.sha }}
249-
restore-keys: |
250-
cli-macos-x64-dist-${{ hashFiles('**/*.cabal', '**/cabal.project*') }}-
251-
cli-macos-x64-dist-
252-
253-
- name: Install system deps
254-
run: |
255-
brew install pkg-config libpq librdkafka snappy lz4 zstd grpc openssl protobuf
256-
PREFIX=$(brew --prefix)
257-
echo "PKG_CONFIG_PATH=$PREFIX/opt/libpq/lib/pkgconfig:$PREFIX/opt/snappy/lib/pkgconfig:$PREFIX/opt/librdkafka/lib/pkgconfig:$PREFIX/opt/lz4/lib/pkgconfig:$PREFIX/opt/zstd/lib/pkgconfig:$PREFIX/opt/grpc/lib/pkgconfig:$PREFIX/opt/openssl/lib/pkgconfig" >> $GITHUB_ENV
258-
echo "$PREFIX/opt/libpq/bin" >> $GITHUB_PATH
259-
cat >> cabal.project.local <<EOF
260-
extra-lib-dirs: $PREFIX/opt/snappy/lib $PREFIX/opt/libpq/lib $PREFIX/opt/librdkafka/lib $PREFIX/opt/lz4/lib $PREFIX/opt/zstd/lib $PREFIX/opt/openssl/lib $PREFIX/lib
261-
extra-include-dirs: $PREFIX/opt/snappy/include $PREFIX/opt/libpq/include $PREFIX/opt/librdkafka/include $PREFIX/opt/lz4/include $PREFIX/opt/zstd/include $PREFIX/opt/openssl/include $PREFIX/include
262-
EOF
263-
264-
- name: Build CLI binary
265-
run: cabal build exe:monoscope -j --ghc-options="-O2 +RTS -A64m -n2m -RTS"
266-
267-
- name: Package binary
268-
run: |
269-
BIN=$(cabal list-bin exe:monoscope | tail -n1)
270-
strip "$BIN"
271-
cp "$BIN" monoscope
272-
tar czf monoscope-darwin-x86_64.tar.gz monoscope
273-
274-
- name: Upload artifact
275-
uses: actions/upload-artifact@v4
276-
with:
277-
name: monoscope-darwin-x86_64
278-
path: monoscope-darwin-x86_64.tar.gz
279-
retention-days: 5
280-
281218
release:
282219
name: Create GitHub Release
283-
needs: [build-linux-x64, build-linux-arm64, build-macos-arm64, build-macos-x64]
220+
needs: [build-linux-x64, build-linux-arm64, build-macos-arm64]
284221
runs-on: ubuntu-latest
285222
permissions:
286223
contents: write

0 commit comments

Comments
 (0)