Skip to content

Commit

Permalink
Disable MacOS builds temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl authored Jan 3, 2025
1 parent deed95d commit 6e3ac39
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 95 deletions.
63 changes: 32 additions & 31 deletions .github/workflows/dev-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,37 +30,38 @@ jobs:
name: linux-build
path: 'dist/DeFi Wallet-${{ env.PACKAGE_VERSION}}.AppImage'

build_mac_version:
runs-on: macos-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20

- name: Get App Version
uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

- name: install dependencies
run: npm cache clean --force && npm run init

- name: Build app
run: npm run build:mac
env:
CSC_LINK: ${{ secrets.CSC_LINK}}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD}}
CI: true
APPLE_ID: ${{ secrets.APPLE_ID}}
TEAM_ID: ${{ secrets.TEAM_ID}}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS}}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS}}
CSC_FOR_PULL_REQUEST: true

- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: mac-build
path: 'dist/DeFi Wallet-${{ env.PACKAGE_VERSION}}.dmg'
# Temporarily disable Mac version in release until new keys are added as this blocks all platforms.
# build_mac_version:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

# - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
# with:
# node-version: 20

# - name: Get App Version
# uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

# - name: install dependencies
# run: npm cache clean --force && npm run init

# - name: Build app
# run: npm run build:mac
# env:
# CSC_LINK: ${{ secrets.CSC_LINK}}
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD}}
# CI: true
# APPLE_ID: ${{ secrets.APPLE_ID}}
# TEAM_ID: ${{ secrets.TEAM_ID}}
# APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS}}
# APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS}}
# CSC_FOR_PULL_REQUEST: true

# - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
# with:
# name: mac-build
# path: 'dist/DeFi Wallet-${{ env.PACKAGE_VERSION}}.dmg'

build_windows_version:
runs-on: windows-latest
Expand Down
130 changes: 66 additions & 64 deletions .github/workflows/release-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,70 +65,72 @@ jobs:
files: ./DeFi-Wallet-${{ env.PACKAGE_VERSION}}.AppImage.SHA256
token: ${{ secrets.GITHUB_TOKEN }}

publish_mac_version:
runs-on: macos-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20

- name: install dependencies
run: npm cache clean --force && npm run init

- name: Build app
run: npm run pre:build:mac

- name: Publish app
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK}}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD}}
CI: true
APPLE_ID: ${{ secrets.APPLE_ID}}
TEAM_ID: ${{ secrets.TEAM_ID}}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS}}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS}}

create-mac-checksum:
needs:
- publish_mac_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20

- name: Get App Version
uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

- name: Fetch Release Asset
uses: Legion2/download-release-action@68df3d242858e28a7e6d8b9838a3e6730cdfc422
with:
repository: 'DeFiCh/app'
tag: 'v${{ env.PACKAGE_VERSION}}'
file: 'DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg'

- name: Get Release Info with Tag Name
id: latest_release_info
uses: bruceadams/get-release@3a8733307b85cd96d52772b037617bd63d99522e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate SHA256 checksum
run: |
sha256sum DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg > DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg.SHA256
- name: Upload checksum - Mac
uses: softprops/action-gh-release@a80139913ad69754b738283897e8a1e3362b1a03
with:
fail_on_unmatched_files: true
files: ./DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg.SHA256
token: ${{ secrets.GITHUB_TOKEN }}
# Temporarily disable Mac version in release until new keys are added as this blocks all platforms.
#
# publish_mac_version:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

# - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
# with:
# node-version: 20

# - name: install dependencies
# run: npm cache clean --force && npm run init

# - name: Build app
# run: npm run pre:build:mac

# - name: Publish app
# run: npm run publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CSC_LINK: ${{ secrets.CSC_LINK}}
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD}}
# CI: true
# APPLE_ID: ${{ secrets.APPLE_ID}}
# TEAM_ID: ${{ secrets.TEAM_ID}}
# APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS}}
# APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS}}

# create-mac-checksum:
# needs:
# - publish_mac_version
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

# - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
# with:
# node-version: 20

# - name: Get App Version
# uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

# - name: Fetch Release Asset
# uses: Legion2/download-release-action@68df3d242858e28a7e6d8b9838a3e6730cdfc422
# with:
# repository: 'DeFiCh/app'
# tag: 'v${{ env.PACKAGE_VERSION}}'
# file: 'DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg'

# - name: Get Release Info with Tag Name
# id: latest_release_info
# uses: bruceadams/get-release@3a8733307b85cd96d52772b037617bd63d99522e
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Generate SHA256 checksum
# run: |
# sha256sum DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg > DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg.SHA256

# - name: Upload checksum - Mac
# uses: softprops/action-gh-release@a80139913ad69754b738283897e8a1e3362b1a03
# with:
# fail_on_unmatched_files: true
# files: ./DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg.SHA256
# token: ${{ secrets.GITHUB_TOKEN }}

publish_windows_version:
runs-on: windows-latest
Expand Down

0 comments on commit 6e3ac39

Please sign in to comment.