-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ron de las Alas
committed
Nov 27, 2023
1 parent
c0362e6
commit 8022c5b
Showing
3 changed files
with
53 additions
and
22,577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,51 +45,56 @@ jobs: | |
GitHub head ref: ${{ github.head_ref }} | ||
Working directory: $(pwd) | ||
EOF | ||
- name: Install NPM dependencies | ||
run: npm ci | ||
- name: Test | ||
run: npm run test | ||
# - name: Install NPM dependencies | ||
# run: npm ci | ||
# - name: Test | ||
# run: npm run test | ||
- name: install 2.7 | ||
run: | | ||
brew install pyenv | ||
pyenv install 2.7.18 | ||
- name: Check Python version | ||
run: python --version | ||
- name: Setup Keys for Fastlane | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.FASTLANE_DEPLOY_KEY }} | ||
- name: Fastlane | ||
if: matrix.os == 'macos-latest' && vars.SCRATCH_SHOULD_SIGN | ||
run: fastlane circleci | ||
- name: Build | ||
timeout-minutes: 30 # macOS notarization can take a while | ||
env: | ||
# TODO: fix whatever is causing excessive memory usage during build | ||
NODE_OPTIONS: --max-old-space-size=4096 | ||
# These will be blank on macOS and on unsigned builds | ||
# macOS CSC info was set by Fastlane above | ||
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }} | ||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} | ||
PYTHON_PATH: /Library/Frameworks/Python.framework/Versions/Current/bin/python | ||
run: npm run ${{ vars.SCRATCH_SHOULD_SIGN && 'dist' || 'distDev' }} | ||
- name: Zip MAS-Dev build | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
NPM_APP_VERSION="`node -pe "require('./package.json').version"`" | ||
cd dist/mas-dev | ||
ditto -v -c -k --sequesterRsrc --keepParent --zlibCompressionLevel 9 \ | ||
Scratch*.app ../mas-dev-${NPM_APP_VERSION}.zip | ||
- name: Upload macOS artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: matrix.os == 'macos-latest' | ||
with: | ||
name: macOS | ||
path: | | ||
dist/Scratch*.dmg | ||
dist/mas/Scratch*.pkg | ||
dist/mas-dev-*.zip | ||
- name: Upload Windows artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
name: Windows | ||
path: | | ||
dist/Scratch*.appx | ||
dist/Scratch*.exe | ||
run: python --version && which python | ||
|
||
# - name: Setup Keys for Fastlane | ||
# uses: webfactory/[email protected] | ||
# with: | ||
# ssh-private-key: ${{ secrets.FASTLANE_DEPLOY_KEY }} | ||
# - name: Fastlane | ||
# if: matrix.os == 'macos-latest' && vars.SCRATCH_SHOULD_SIGN | ||
# run: fastlane circleci | ||
# - name: Build | ||
# timeout-minutes: 30 # macOS notarization can take a while | ||
# env: | ||
# # TODO: fix whatever is causing excessive memory usage during build | ||
# NODE_OPTIONS: --max-old-space-size=4096 | ||
# # These will be blank on macOS and on unsigned builds | ||
# # macOS CSC info was set by Fastlane above | ||
# WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }} | ||
# WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} | ||
# PYTHON_PATH: /Library/Frameworks/Python.framework/Versions/Current/bin/python | ||
# run: npm run ${{ vars.SCRATCH_SHOULD_SIGN && 'dist' || 'distDev' }} | ||
# - name: Zip MAS-Dev build | ||
# if: matrix.os == 'macos-latest' | ||
# run: | | ||
# NPM_APP_VERSION="`node -pe "require('./package.json').version"`" | ||
# cd dist/mas-dev | ||
# ditto -v -c -k --sequesterRsrc --keepParent --zlibCompressionLevel 9 \ | ||
# Scratch*.app ../mas-dev-${NPM_APP_VERSION}.zip | ||
# - name: Upload macOS artifacts | ||
# uses: actions/upload-artifact@v2 | ||
# if: matrix.os == 'macos-latest' | ||
# with: | ||
# name: macOS | ||
# path: | | ||
# dist/Scratch*.dmg | ||
# dist/mas/Scratch*.pkg | ||
# dist/mas-dev-*.zip | ||
# - name: Upload Windows artifacts | ||
# uses: actions/upload-artifact@v2 | ||
# if: matrix.os == 'windows-latest' | ||
# with: | ||
# name: Windows | ||
# path: | | ||
# dist/Scratch*.appx | ||
# dist/Scratch*.exe |
Oops, something went wrong.