Skip to content

Commit 285a945

Browse files
authored
Merge pull request #5 from pilvikala/bug-fixes
Bug fixes
2 parents e735c63 + 480f85e commit 285a945

File tree

10 files changed

+513
-520
lines changed

10 files changed

+513
-520
lines changed

.github/workflows/release.yml

Lines changed: 62 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "v1.*"
77

88
jobs:
9-
release:
9+
build-linux:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -19,22 +19,72 @@ jobs:
1919
cache: "npm"
2020

2121
- name: Install dependencies
22-
run: npm ci
22+
run: npm install
2323

2424
- name: Build project
2525
run: npm run build
2626

2727
- name: Build binaries
28-
run: npm run build:all
28+
run: npm run build:linux-x64
2929

30-
- name: Upload artifacts
30+
- name: Upload build artifact
3131
uses: actions/upload-artifact@v4
3232
with:
33-
name: binaries
34-
path: |
35-
dist/macos-x64/cloud-archive
36-
dist/macos-arm64/cloud-archive
37-
dist/linux-x64/cloud-archive
38-
dist/linux-arm64/cloud-archive
39-
dist/win-x64/cloud-archive.exe
40-
dist/win-arm64/cloud-archive.exe
33+
name: linux-x64
34+
path: dist/linux-x64.tar
35+
retention-days: 1
36+
37+
# build-windows:
38+
# runs-on: windows-latest
39+
40+
# steps:
41+
# - uses: actions/checkout@v4
42+
43+
# - name: Setup Node.js
44+
# uses: actions/setup-node@v4
45+
# with:
46+
# node-version: "22"
47+
# cache: "npm"
48+
49+
# - name: Install dependencies
50+
# run: npm install
51+
52+
# - name: Build project
53+
# run: npm run build
54+
55+
# - name: Build binaries
56+
# run: npm run build:win-x64
57+
58+
# - name: Upload build artifact
59+
# uses: actions/upload-artifact@v4
60+
# with:
61+
# name: win-x64
62+
# path: dist/win-x64.tar
63+
# retention-days: 1
64+
65+
release:
66+
needs:
67+
# - build-windows
68+
- build-linux
69+
runs-on: ubuntu-latest
70+
steps:
71+
- name: Get linux build
72+
uses: actions/download-artifact@v4
73+
with:
74+
name: linux-x64
75+
path: linux-x64.tar
76+
77+
# - name: Get windows build
78+
# uses: actions/download-artifact@v4
79+
# with:
80+
# name: win-x64
81+
# path: win-x64.tar
82+
83+
- uses: "marvinpinto/action-automatic-releases@latest"
84+
with:
85+
repo_token: "${{ secrets.GH_TOKEN }}"
86+
prerelease: false
87+
title: ${{ github.ref }}
88+
tag: ${{ github.ref }}
89+
files: |
90+
linux-x64.tar

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules/
22
dist/
33
.env
44
.DS_Store
5-
*.log
5+
*.log
6+
test_data/

0 commit comments

Comments
 (0)