-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR - build for windows on linux machine (#351)
* test with graceful-fs * test with graceful-fs * test with graceful-fs with all * Revert "test with graceful-fs" This reverts commit 95f1558. * added nextjs optimization package for @mui/lab and translation-helps-rcl * added tc-ui-toolkit to 'optimizePackageImports' * added 'usfm-editor' to 'optimizePackageImports' * added some more packages to optimization * re-testing graceful-fs * updated next * updated nextjs config * Revert "test with graceful-fs" This reverts commit 95f1558. * trying with a node update to v20.15.0 * trying to update 'MaxOpenFiles' on windows * changed the way I call '@mui' * changed '@mui/icons-material' from deps to dev-deps * gracefuly-fs directly in yaml config file * let's try to build on linux machine to make an exe * now trying to fix install macos * fix yml file * fix yml file * final fix yml file * last fix yaml * testing a fix for macos * MODIFY : macos config => it looks like it lacked some deps install --------- Co-authored-by: danielc-n <[email protected]>
- Loading branch information
Showing
6 changed files
with
94 additions
and
77 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 |
---|---|---|
|
@@ -9,20 +9,19 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: false | ||
strategy: | ||
matrix: | ||
node-version: [18.20.3] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Use Node.js 18.20.3 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 18.20.3 | ||
- run: | | ||
node --version | ||
yarn --version | ||
|
@@ -33,7 +32,7 @@ jobs: | |
run: yarn install | ||
|
||
- name: set max memory allocation | ||
run: export NODE_OPTIONS=–max_old_space_size=4096 | ||
run: export NODE_OPTIONS=-max_old_space_size=4096 | ||
|
||
# - name: Read version and commit sha | ||
# run: | | ||
|
@@ -58,98 +57,98 @@ jobs: | |
path: dist | ||
|
||
build-windows: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: false | ||
strategy: | ||
matrix: | ||
node-version: [18.20.3] | ||
os: [windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Use Node.js 18.20.3 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 18.20.3 | ||
- run: | | ||
node --version | ||
yarn --version | ||
- name: set @bitregistry translation-help | ||
run: yarn config set '@bit:registry' https://node.bit.dev | ||
|
||
- name: yarn install | ||
run: yarn install | ||
|
||
- name: set max memory allocation | ||
run: set NODE_OPTIONS=–max_old_space_size=4096 | ||
|
||
# - name: Read version and commit sha | ||
# run: | ||
# echo "::set-env name=HASH::$(node -p -e "'${{ github.sha }}'.substring(0, 7)")" | ||
# echo "::set-env name=APP_VERSION::$(node -p -e "require('./package.json').version")" | ||
run: export NODE_OPTIONS=-max_old_space_size=4096 | ||
|
||
# - name: Set x64 artifact name | ||
# run: echo "::set-env name=ARTIFACT_X64::$(echo "Autographa-win-x64-${{ env.APP_VERSION }}.exe")" | ||
- name: install dependencies | ||
run: yarn install | ||
|
||
- name: packaging | ||
id: packaging | ||
- name: install wine | ||
run: | | ||
yarn dist | ||
sudo dpkg --add-architecture i386 | ||
sudo apt update | ||
sudo apt install -y wine32 wine64 | ||
- name: build executable | ||
run: yarn dist --win --x64 | ||
|
||
- name: Cleanup artifacts | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
mkdir artifacts | ||
mv "dist/(*.exe,*.deb,*.AppImage,*.dmg)" artifacts || true | ||
- name: Cleanup artifacts Win | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
mkdir artifacts | ||
mkdir -p artifacts | ||
mv dist/*.exe artifacts | ||
- name: Upload artifacts ${{ env.ARTIFACT_X64 }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Scribe | ||
path: artifacts | ||
name: Scribe | ||
path: artifacts | ||
|
||
build-mac: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: macos-latest | ||
env: | ||
CI: false | ||
strategy: | ||
matrix: | ||
node-version: [18.20.3] | ||
os: [macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Use Node.js 18.20.3 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 18.20.3 | ||
- run: | | ||
node --version | ||
yarn --version | ||
- name: set @bitregistry translation-help | ||
run: yarn config set '@bit:registry' https://node.bit.dev | ||
|
||
- name: Install Homebrew | ||
run: | | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile | ||
eval "$(/opt/homebrew/bin/brew shellenv)" | ||
- name: Install canvas dependencies | ||
run: | | ||
brew install pkg-config cairo pango libpng jpeg giflib librsvg [email protected] | ||
brew reinstall jpeg | ||
echo 'export PATH="/opt/homebrew/opt/jpeg/bin:$PATH"' >> $HOME/.zprofile | ||
echo 'export LDFLAGS="-L/opt/homebrew/opt/jpeg/lib"' >> $HOME/.zprofile | ||
echo 'export CPPFLAGS="-I/opt/homebrew/opt/jpeg/include"' >> $HOME/.zprofile | ||
echo 'export PKG_CONFIG_PATH="/opt/homebrew/opt/jpeg/lib/pkgconfig"' >> $HOME/.zprofile | ||
eval "$(/opt/homebrew/bin/brew shellenv)" | ||
/opt/homebrew/opt/[email protected]/bin/pip3 install setuptools | ||
/opt/homebrew/opt/[email protected]/bin/pip3 install distutils | ||
- name: set max memory allocation | ||
run: export NODE_OPTIONS=-max_old_space_size=4096 | ||
|
||
- name: yarn install | ||
run: yarn install | ||
|
||
- name: install dmg-license | ||
run: yarn add dmg-license | ||
|
||
- name: set max memory allocation | ||
run: export NODE_OPTIONS=–max_old_space_size=4096 | ||
|
||
# - name: Read version and commit sha | ||
# run: | | ||
# echo "::set-env name=HASH::$(echo $GITHUB_SHA | cut -c1-7)" | ||
# echo "::set-env name=APP_VERSION::$(node -p -e "require('./package.json').version")" | ||
# - name: Set artifact name | ||
# run: echo "::set-env name=ARTIFACT_NAME::$(echo "Autographa-mac-x64-$APP_VERSION.dmg")" | ||
|
||
- name: package | ||
id: package | ||
run: | | ||
|
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
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
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
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
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