Skip to content

Commit 676cc97

Browse files
committed
chore: github action to build binaries
1 parent 1952dff commit 676cc97

File tree

3 files changed

+956
-4
lines changed

3 files changed

+956
-4
lines changed

.github/workflows/release.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CLI Release
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- '*'
7+
jobs:
8+
create-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: 'Install NPM dependencies'
13+
run: npm ci
14+
- name: 'Install LDID'
15+
run: |
16+
wget -O /usr/local/bin/ldid https://github.com/ProcursusTeam/ldid/releases/download/v2.1.5-procursus7/ldid_linux_x86_64
17+
chmod +x /usr/local/bin/ldid
18+
- name: 'Configure binfmt'
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y binfmt-support qemu-user-static
22+
- name: 'Build'
23+
run: npm run package
24+
- name: Upload Release
25+
uses: ncipollo/release-action@v1
26+
with:
27+
artifacts: 'dist/bin/wokwi-cli-*'
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
generateReleaseNotes: true

0 commit comments

Comments
 (0)