Skip to content
Closed
Changes from all 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
41 changes: 29 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -21,26 +22,42 @@ jobs:
with:
python-version: '3.13'

- name: Install GCC
id: install-gcc
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential@latest
version: 1.0
# - name: Install GCC
# id: install-gcc
# uses: awalsh128/cache-apt-pkgs-action@latest
# with:
# packages: build-essential
# version: 1.0
- name: Install build-tools
run: |
sudo apt update
sudo apt install build-essential

- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Display installed packages
run: |
dpkg -l g++ gcc make build-essential

# - name: Setup Bun
# uses: oven-sh/setup-bun@v2
# with:
# bun-version: latest

- name: Setup Node
uses: actions/setup-node@v4
with:
bun-version: latest
node-version: "20"

- name: Install node-gyp
run: bun add -g node-gyp
run: npm install -g node-gyp --ignore-scripts

- name: Install dependencies
run: bun install --ignore-scripts --frozen-lockfile
run: npm install --ignore-scripts

- name: Configure node-gyp
run: node-gyp configure

- name: Build
run: bun run build
run: node-gyp build

# - name: Upload artifact
# uses: actions/upload-artifact@v4
Expand Down
Loading