Skip to content

Commit

Permalink
original build script
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed May 1, 2024
1 parent 4be730a commit 49e4f4c
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
strategy:
matrix:
include:
- os: macos-latest-large
arch: x64
- os: macos-latest
arch: arm64
# arch: x64
# - os: macos-latest-xlarge
# arch: arm64
- os: windows-latest
- os: ubuntu-latest
arch: x64
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
run: npm run test

- name: Set up environment for macOS build
if: matrix.os == 'macos-latest-large' || matrix.os == 'macos-latest'
if: matrix.os == 'macos-latest' || matrix.os == 'macos-latest-xlarge'
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
Expand All @@ -69,7 +69,7 @@ jobs:
npm run build
- name: Build for non-macos
if: matrix.os != 'macos-latest-large' && matrix.os != 'macos-latest'
if: matrix.os != 'macos-latest' && matrix.os != 'macos-latest-xlarge'
run: |
npm run build
Expand All @@ -79,23 +79,13 @@ jobs:
- name: Print APP_VERSION
run: echo "APP_VERSION=${{ env.APP_VERSION }}"

- name: List output files
if: matrix.os == 'macos-latest-large'
run: |
ls ./release/${{ env.APP_VERSION }}/
- name: Check runner architecture
if: matrix.os == 'macos-latest-large'
run: uname -m


- name: Rename artifacts for ARM architecture
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-latest-xlarge'
run: |
mv ./release/${{ env.APP_VERSION }}/*.dmg ./release/${{ env.APP_VERSION }}/Reor_${{ env.APP_VERSION }}-arm64.dmg
- name: Rename artifacts for Intel architecture
if: matrix.os == 'macos-latest-large'
if: matrix.os == 'macos-latest'
run: |
mv ./release/${{ env.APP_VERSION }}/*.dmg ./release/${{ env.APP_VERSION }}/Reor_${{ env.APP_VERSION }}-intel.dmg
Expand All @@ -107,4 +97,4 @@ jobs:
./release/*/*.exe
./release/${{ env.APP_VERSION }}/**/*.AppImage
./release/${{ env.APP_VERSION }}/*-arm64.dmg
./release/${{ env.APP_VERSION }}/*-intel.dmg
./release/${{ env.APP_VERSION }}/*-intel.dmg

0 comments on commit 49e4f4c

Please sign in to comment.