diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8517a6d..b8063e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: Release on: + workflow_dispatch: push: branches: - main @@ -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