Skip to content

Commit

Permalink
func,feat: generate self-contained binary
Browse files Browse the repository at this point in the history
  • Loading branch information
bard committed Dec 15, 2023
1 parent 50ce1ca commit f4cb75f
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 187 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/generate-image.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm install
- name: Install pkg
run: npm install --global pkg
- name: Build
run: pkg package.json --output gs-log --targets linux,macos,win
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
gs-log-linux
gs-log-macos
gs-log-win.exe
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


33 changes: 33 additions & 0 deletions .github/workflows/tmp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and release
on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm install
- name: Install pkg
run: npm install --global pkg
- name: Build
run: pkg package.json --output gs-log --targets linux,macos,win
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
gs-log-linux
gs-log-macos
gs-log-win.exe
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


Loading

0 comments on commit f4cb75f

Please sign in to comment.