Skip to content

Commit

Permalink
Enable Apple amd64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke committed Jul 31, 2022
1 parent 9b4b010 commit cc441dc
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
workflow_dispatch:
push:
branches: [ main ]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest,windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
Expand All @@ -20,7 +20,7 @@ jobs:
export LENS_VERSION=$(cat version)
echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV
shell: bash
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 16.16.0
- name: Update Lens
Expand All @@ -36,15 +36,29 @@ jobs:
if [ "$RUNNER_OS" == "Windows" ]; then
choco install visualstudio2019buildtools visualstudio2019-workload-vctools
fi
make build
if [ "$RUNNER_OS" == "macOS" ]; then
cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.dmg releasefiles/OpenLens-${{ env.LENS_VERSION }}.dmg
cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.zip releasefiles/OpenLens-${{ env.LENS_VERSION }}.zip
env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64" make build
for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.dmg; do
if [[ "$file" == *"arm64"* ]]; then
echo cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.dmg
else
echo cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}.dmg
fi
done
for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.zip; do
if [[ "$file" == *"arm64"* ]]; then
cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.zip
else
cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}.zip
fi
done
elif [ "$RUNNER_OS" == "Linux" ]; then
make build
cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.x86_64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage
cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.amd64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb
cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.x86_64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.rpm
else
make build
cp dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe
fi
shell: bash
Expand All @@ -63,11 +77,11 @@ jobs:
with:
tag_name: v${{ env.LENS_VERSION }}
files: |
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.dmg
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}-*.dmg
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.rpm
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.zip
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}-*.zip
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe
lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.*.sha256
- name: Latest
Expand Down

0 comments on commit cc441dc

Please sign in to comment.