Skip to content

Commit

Permalink
Update Xcode; add a temporary workaround for macOS builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
paveloom committed Nov 19, 2022
1 parent 8d483fe commit c9f0c5f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/Build & Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: "LBRY version"
description: LBRY version
required: true

env:
Expand All @@ -18,16 +18,14 @@ defaults:
jobs:
build:
runs-on: ${{ matrix.os }}
name: ${{ ( startsWith(matrix.os, 'ubuntu') && 'Linux' ) ||
( startsWith(matrix.os, 'windows') && 'Windows' ) ||
( startsWith(matrix.os, 'mac') && 'macOS' ) }}
name: ${{ ( startsWith(matrix.os, 'ubuntu') && 'Linux' ) || ( startsWith(matrix.os, 'windows') && 'Windows' ) || ( startsWith(matrix.os, 'mac') && 'macOS' ) }}
strategy:
fail-fast: false
matrix:
node-version: [16.x]
os:
- ubuntu-latest
- macos-11
- macos-latest
- windows-latest
steps:
- name: Checkout the repository
Expand All @@ -45,7 +43,17 @@ jobs:
if: startsWith(runner.os, 'mac')
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 12.4.0
xcode-version: 13.1.0
# Temporary hack (part 1)
- name: Setup Homebrew
if: startsWith(runner.os, 'mac')
uses: Homebrew/actions/setup-homebrew@master
# Temporary hack (part 2)
- name: Install Python 2
if: startsWith(runner.os, 'mac')
run: |
/bin/bash -c "$(curl -fsSL https://github.com/alfredapp/dependency-scripts/raw/main/scripts/install-python2.sh)"
echo "PYTHON_PATH=/usr/local/bin/python" >> $GITHUB_ENV
- name: Download blockchain headers
run: |
mkdir -p ./static/daemon
Expand All @@ -54,7 +62,7 @@ jobs:
run: |
yarn dlx cross-env
yarn --network-timeout 600000
if ${{ startsWith(matrix.os, 'mac') }}; then
if ${{ startsWith(runner.os, 'mac') }}; then
sed -i '' 's/electron-builder build/electron-builder --publish=never build/g' package.json
sed -i '' 's|github.com/lbryio/lbry-desktop|github.com/paveloom-f/lbry-desktop|g' package.json
sed -i '' 's|lbryio|paveloom-f|' static/app-update.yml
Expand All @@ -75,9 +83,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ ( startsWith(matrix.os, 'ubuntu') && 'Linux' ) ||
( startsWith(matrix.os, 'windows') && 'Windows' ) ||
( startsWith(matrix.os, 'macOS') && 'macOS' ) }}
name: ${{ ( startsWith(matrix.os, 'ubuntu') && 'Linux' ) || ( startsWith(matrix.os, 'windows') && 'Windows' ) || ( startsWith(matrix.os, 'mac') && 'macOS' ) }}
path: |
dist/electron/latest.yml
dist/electron/latest-mac.yml
Expand Down
3 changes: 3 additions & 0 deletions .yamlfmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
formatter:
type: basic
retain_line_breaks: true

0 comments on commit c9f0c5f

Please sign in to comment.