Skip to content

Commit

Permalink
Remove packages/desktop-cli (#576)
Browse files Browse the repository at this point in the history
* Remove packages/desktop-cli

* Remove build- and publish-desktop-cli
  • Loading branch information
whitphx authored Jun 29, 2023
1 parent 26b701c commit 6ef19af
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 199 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -840,75 +840,6 @@ jobs:
with:
files: packages/desktop/stlite-desktop-v*.tgz

build-desktop-cli:
if: ${{ ! failure() }} # This job should run even if the depending jobs are skipped, but not when those jobs failed: https://qiita.com/abetomo/items/d9ede7dbeeb24f723fc5#%E8%A8%AD%E5%AE%9A%E4%BE%8B4
needs: [test-desktop]

env:
python-version: "3.10"
# To avoid an error like "FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory".
# See https://github.com/actions/virtual-environments/issues/70#issuecomment-653886422
# The Linux VM has 7GB RAM (https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources),
# so we set the max memory size as 6.5 GiB like https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-megabytes
NODE_OPTIONS: "--max-old-space-size=6656"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Package
working-directory: packages/desktop-cli
run: yarn pack

- name: Upload the built tar ball as an artifact
uses: actions/upload-artifact@v3
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
with:
path: packages/desktop-cli/stlite-desktop-cli-v*.tgz
name: stlite-desktop-cli-${{ github.sha }}.tgz

- name: Upload the built tar ball as an artifact (when pushed with a version tag)
uses: actions/upload-artifact@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
path: packages/desktop-cli/stlite-desktop-cli-v*.tgz
name: stlite-desktop-cli-${{ github.ref_name }}.tgz

publish-desktop-cli:
if: ${{ !failure() && startsWith(github.ref, 'refs/tags/v') }} # `!failure()` is necessary to avoid skipping this job after successful build: https://github.com/actions/runner/issues/491
needs: [build-desktop-cli, publish-desktop] # Depends on publish-desktop because `@stlite/desktop-cli` depends on `@stlite/desktop`.

permissions:
contents: write # Necessary for creating releases: https://github.com/softprops/action-gh-release#permissions

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
scope: '@stlite'

- uses: actions/download-artifact@v3
id: download-desktop-cli
with:
name: stlite-desktop-cli-${{ github.ref_name }}.tgz
path: packages/desktop-cli

- run: yarn publish stlite-desktop-cli-v*.tgz --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/desktop-cli

- name: Create a new release
uses: softprops/action-gh-release@v1
with:
files: packages/desktop-cli/stlite-desktop-cli-v*.tgz

test-build-vscode-extension:
strategy:
fail-fast: false
Expand Down
120 changes: 0 additions & 120 deletions packages/desktop-cli/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/desktop-cli/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/desktop-cli/package.json

This file was deleted.

0 comments on commit 6ef19af

Please sign in to comment.