Skip to content

Commit

Permalink
Migration to Rust deps and Yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikescops committed Mar 5, 2023
1 parent e5b4a8e commit cc5c9f9
Show file tree
Hide file tree
Showing 17 changed files with 6,431 additions and 9,218 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/manual-test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test to bundle release artifacts

on: [workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: yarn
- run: yarn run pkg
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: bundles
path: |
bundle/dcli-linux
bundle/dcli-macos
bundle/dcli-win.exe
25 changes: 0 additions & 25 deletions .github/workflows/nodejs.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Generate and Release bundled CLI

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: yarn
- run: yarn run pkg
- name: Release
uses: softprops/action-gh-release@v0.1.14
with:
files: |
bundle/dcli-linux
bundle/dcli-macos
bundle/dcli-win.exe
16 changes: 16 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Run tests & lint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: yarn
- run: yarn run lint
- run: yarn run test
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@
node_modules
dist
bundle

# Yarn related files
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
nodeLinker: node-modules

supportedArchitectures:
cpu:
- x64
- arm64
libc:
- glibc
- musl
os:
- darwin
- linux
- win32

yarnPath: .yarn/releases/yarn-3.4.1.cjs
Loading

0 comments on commit cc5c9f9

Please sign in to comment.