chore: fix linux builds by breaking apart
This commit is contained in:
135
.github/workflows/desktop.release.reuse.yml
vendored
135
.github/workflows/desktop.release.reuse.yml
vendored
@@ -56,7 +56,8 @@ jobs:
|
|||||||
packages/desktop/dist/*.yml
|
packages/desktop/dist/*.yml
|
||||||
packages/desktop/dist/*.yaml
|
packages/desktop/dist/*.yaml
|
||||||
|
|
||||||
Linux:
|
Linux-AppImage:
|
||||||
|
name: Linux AppImage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -68,8 +69,6 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
- name: Set up Ruby
|
|
||||||
uses: ruby/setup-ruby@v1
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
@@ -79,6 +78,9 @@ jobs:
|
|||||||
|
|
||||||
- run: yarn install --immutable
|
- run: yarn install --immutable
|
||||||
|
|
||||||
|
- name: Rebuild Electron Native Modules
|
||||||
|
run: yarn workspace @standardnotes/desktop rebuild:home-server
|
||||||
|
|
||||||
- run: yarn build:desktop
|
- run: yarn build:desktop
|
||||||
|
|
||||||
- run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV
|
- run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV
|
||||||
@@ -92,6 +94,84 @@ jobs:
|
|||||||
- name: AppImageArm64
|
- name: AppImageArm64
|
||||||
run: yarn run electron-builder --linux --arm64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
run: yarn run electron-builder --linux --arm64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
||||||
|
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v3.0.0
|
||||||
|
with:
|
||||||
|
name: assets
|
||||||
|
path: |
|
||||||
|
packages/desktop/dist/*.AppImage
|
||||||
|
packages/desktop/dist/*.yml
|
||||||
|
packages/desktop/dist/*.yaml
|
||||||
|
|
||||||
|
Linux-Dir:
|
||||||
|
name: Linux Dir
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: packages/desktop
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
- name: Install FPM
|
||||||
|
run: sudo gem install fpm -f
|
||||||
|
|
||||||
|
- run: yarn install --immutable
|
||||||
|
|
||||||
|
- name: Rebuild Electron Native Modules
|
||||||
|
run: yarn workspace @standardnotes/desktop rebuild:home-server
|
||||||
|
|
||||||
|
- run: yarn build:desktop
|
||||||
|
|
||||||
|
- run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Dir
|
||||||
|
run: |
|
||||||
|
yarn run webpack --config desktop.webpack.prod.js
|
||||||
|
yarn run electron-builder --linux --x64 -c.linux.target=dir --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
||||||
|
- name: DirArm64
|
||||||
|
run: |
|
||||||
|
yarn run webpack --config desktop.webpack.prod.js
|
||||||
|
yarn run electron-builder --linux --arm64 -c.linux.target=dir --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
||||||
|
env:
|
||||||
|
npm_config_target_arch: 'arm64'
|
||||||
|
|
||||||
|
Linux-Deb:
|
||||||
|
name: Linux Deb
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: packages/desktop
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
- name: Install FPM
|
||||||
|
run: sudo gem install fpm -f
|
||||||
|
|
||||||
|
- run: yarn install --immutable
|
||||||
|
|
||||||
|
- name: Rebuild Electron Native Modules
|
||||||
|
run: yarn workspace @standardnotes/desktop rebuild:home-server
|
||||||
|
|
||||||
|
- run: yarn build:desktop
|
||||||
|
|
||||||
|
- run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Deb
|
- name: Deb
|
||||||
run: |
|
run: |
|
||||||
yarn run webpack --config desktop.webpack.prod.js --env deb
|
yarn run webpack --config desktop.webpack.prod.js --env deb
|
||||||
@@ -104,16 +184,40 @@ jobs:
|
|||||||
yarn run webpack --config desktop.webpack.prod.js --env deb
|
yarn run webpack --config desktop.webpack.prod.js --env deb
|
||||||
yarn run electron-builder --linux --arm64 -c.linux.target=deb --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
yarn run electron-builder --linux --arm64 -c.linux.target=deb --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
||||||
|
|
||||||
- name: Dir
|
- name: Upload
|
||||||
run: |
|
uses: actions/upload-artifact@v3.0.0
|
||||||
yarn run webpack --config desktop.webpack.prod.js
|
with:
|
||||||
yarn run electron-builder --linux --x64 -c.linux.target=dir --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
name: assets
|
||||||
- name: DirArm64
|
path: |
|
||||||
run: |
|
packages/desktop/dist/*.deb
|
||||||
yarn run webpack --config desktop.webpack.prod.js
|
packages/desktop/dist/*.yml
|
||||||
yarn run electron-builder --linux --arm64 -c.linux.target=dir --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
packages/desktop/dist/*.yaml
|
||||||
env:
|
|
||||||
npm_config_target_arch: 'arm64'
|
Linux-Snap:
|
||||||
|
name: Linux Snap
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: packages/desktop
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
- name: Install FPM
|
||||||
|
run: sudo gem install fpm -f
|
||||||
|
|
||||||
|
- run: yarn install --immutable
|
||||||
|
|
||||||
|
- run: yarn build:desktop
|
||||||
|
|
||||||
|
- run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install Snapcraft
|
- name: Install Snapcraft
|
||||||
run: |
|
run: |
|
||||||
@@ -139,9 +243,6 @@ jobs:
|
|||||||
name: assets
|
name: assets
|
||||||
path: |
|
path: |
|
||||||
packages/desktop/dist/*.snap
|
packages/desktop/dist/*.snap
|
||||||
packages/desktop/dist/*.AppImage
|
|
||||||
packages/desktop/dist/*.deb
|
|
||||||
packages/desktop/dist/*.blockmap
|
|
||||||
packages/desktop/dist/*.yml
|
packages/desktop/dist/*.yml
|
||||||
packages/desktop/dist/*.yaml
|
packages/desktop/dist/*.yaml
|
||||||
|
|
||||||
@@ -232,7 +333,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
needs: [Windows, Mac, Linux]
|
needs: [Windows, Mac, Linux-AppImage, Linux-Dir, Linux-Deb, Linux-Snap]
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: packages/desktop
|
working-directory: packages/desktop
|
||||||
|
|||||||
Reference in New Issue
Block a user