From 6197e16351a01a991f7e099d8a8bd1c84125cdfd Mon Sep 17 00:00:00 2001 From: zhaoyulin <92558550+alphabiz-se4@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:25:25 +0800 Subject: [PATCH] skip e2e --- .github/workflows/release-nightly.yml | 44 ++++++++++++++++++--------- release.json | 2 +- 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index fb094fcf..79400edd 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -40,11 +40,11 @@ jobs: file-name-lower: ${{ steps.slug.outputs.file-name-lower }} strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest] # [ubuntu-latest, macos-latest-large] node-version: [16] include: - - os: windows-latest - node-version: 16 + # - os: windows-latest + # node-version: 16 fail-fast: false environment: name: CICD @@ -115,6 +115,11 @@ jobs: fi shell: bash + - uses: actions/setup-python@v5 + if: runner.os == 'macOS' + with: + python-version: '3.8' + - name: Setup Node.js ${{ matrix.node-version }} ๐Ÿ“ฎ uses: actions/setup-node@v3 with: @@ -132,7 +137,7 @@ jobs: if [[ ${{ matrix.os }} = "ubuntu-latest" ]] ; \ then echo "system=ubuntu" >> $GITHUB_OUTPUT ; \ echo "package=${{ steps.slug.outputs.display-name }}-linux-x64" >> $GITHUB_OUTPUT ; \ - elif [[ ${{ matrix.os }} = "macos-latest" ]] ; \ + elif [[ ${{ matrix.os }} = "macos-latest-large" ]] ; \ then echo "system=macos" >> $GITHUB_OUTPUT ; \ echo "package=${{ steps.slug.outputs.display-name }}-darwin-x64" >> $GITHUB_OUTPUT ; \ elif [[ ${{ matrix.os }} = "windows-latest" ]] ; \ @@ -310,12 +315,12 @@ jobs: Set-DisplayResolution -Width 1920 -Height 1080 -Force shell: powershell - - name: screen resolution(For Mac) - if: runner.os == 'macOS' - run: | - system_profiler SPDisplaysDataType | grep Resolution - "/Library/Application Support/VMware Tools/vmware-resolutionSet" 2560 1440 - system_profiler SPDisplaysDataType | grep Resolution + # - name: screen resolution(For Mac) + # if: runner.os == 'macOS' + # run: | + # system_profiler SPDisplaysDataType | grep Resolution + # "/Library/Application Support/VMware Tools/vmware-resolutionSet" 2560 1440 + # system_profiler SPDisplaysDataType | grep Resolution - name: main E2E Test for Electron ๐Ÿงช if: "!contains(github.event.head_commit.message, 'skip e2e')" @@ -486,7 +491,14 @@ jobs: xcrun notarytool submit "$SIGNED_DMG" -v --apple-id "$APPLE_ID" --password "$APPLE_ASP" --team-id "$APPLE_TEAM_ID" -f json --wait xcrun stapler staple "$SIGNED_DMG" echo "Finish notarizing dmg" - + + - name: check + if: runner.os == 'macOS' + run: | + ls + echo "------------------------" + ls ./dist/electron + - name: Package for ${{ steps.vars.outputs.system }}-${{ steps.unify.outputs.tag-name }} Release ๐Ÿ—œ๏ธ if: contains(steps.vars.outputs.event-name, 'schedule') || contains(env.MODIFIED_FILE_LIST, 'release.json') run: 7z a -t7z -mx=9 "./out/installers/${{ steps.unify.outputs.tag-name }}/${{ steps.slug.outputs.file-name-lower }}-${{ steps.unify.outputs.package-name }}-${{ steps.vars.outputs.system }}.7z" "./dist/electron/${{ steps.vars.outputs.package }}" @@ -499,7 +511,7 @@ jobs: - name: Release ${{ steps.slug.outputs.file-name-lower }}-${{ steps.unify.outputs.package-name }}-${{ steps.vars.outputs.system }} to GitHub ๐Ÿ“ฐ if: | (contains(steps.vars.outputs.event-name, 'schedule') || contains(env.MODIFIED_FILE_LIST, 'release.json')) && - (matrix.os != 'macos-latest' || contains(steps.check.outputs.isBuildUniversal, '0')) + (matrix.os != 'macos-latest-large' || contains(steps.check.outputs.isBuildUniversal, '0')) uses: softprops/action-gh-release@v1 with: prerelease: true @@ -725,7 +737,7 @@ jobs: if [[ ${{ matrix.os }} = "ubuntu-latest" ]] ; \ then echo "system=ubuntu" >> $GITHUB_OUTPUT ; \ echo "package=${{ steps.slug.outputs.display-name }}-linux-x64" >> $GITHUB_OUTPUT ; \ - elif [[ ${{ matrix.os }} = "macos-latest" ]] ; \ + elif [[ ${{ matrix.os }} = "macos-latest-large" ]] ; \ then echo "system=macos" >> $GITHUB_OUTPUT ; \ echo "package=${{ steps.slug.outputs.display-name }}-darwin-x64" >> $GITHUB_OUTPUT ; \ elif [[ ${{ matrix.os }} = "windows-latest" ]] ; \ @@ -793,10 +805,14 @@ jobs: sudo ln -s /var/snap/lxd/common/lxd /var/lib/lxd sudo snap install multipass --classic + - name: remove Snapcraft + run: sudo snap remove snapcraft - name: Install Snapcraft - uses: samuelmeuli/action-snapcraft@v1 + uses: samuelmeuli/action-snapcraft@v2 with: use_lxd: true + env: + INPUT_CHANNEL: 7.x/stable - name: Pack snap ๐Ÿ“ฆ run: yarn make:snap:ci diff --git a/release.json b/release.json index ec01901e..9f6ad95d 100644 --- a/release.json +++ b/release.json @@ -1,4 +1,4 @@ { "targetTagName": "main", - "newTagName": "0.3.2" + "newTagName": "0.3.3" } \ No newline at end of file