Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone pkg #842

Merged
merged 21 commits into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,21 @@ jobs:
cml runner --version
cml publish --version
cml pr --version

npm install
pkg -t node14-linux,node14-macos package.json
- if: matrix.system != 'windows'
run: |
cml-runner --version
cml-publish --version
cml-pr --version
- if: matrix.system == 'ubuntu'
run: |
./build/cml-linux publish assets/test.svg
- if: matrix.system == 'macos'
run: |
./build/cml-macos publish assets/test.svg

packages:
needs: [lint, test, test-os]
runs-on: ubuntu-latest
Expand All @@ -90,6 +100,31 @@ jobs:
--dry-run' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
binaries:
needs: authorize
name: binaries-${{ matrix.system }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: build
run: |
pkg -t node14-linux,node14-macos package.json

- uses: JasonEtco/upload-to-release@master
with:
args: build/cml-macos application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: JasonEtco/upload-to-release@master
with:
args: build/cml-linux application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

images:
runs-on: ubuntu-latest
needs: packages
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ terraform.*
!terraform.js
!terraform.test.js
crash.log
/build
Loading