fix(ci): publish workflow artifact paths and npm build #270
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Single Executable Tool | |
| on: | |
| workflow_dispatch: | |
| workflow_call: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| paths: | |
| - "src/**" | |
| - "agent/**" | |
| - "gui/**" | |
| - "scripts/**" | |
| - "externals/**" | |
| - "wasi/**" | |
| - "package.json" | |
| - "bun.lock" | |
| - "tsconfig.json" | |
| - "tsdown.config.ts" | |
| - ".github/workflows/build-cli.yml" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - uses: ./.github/actions/setup | |
| - name: Install dependencies | |
| run: | | |
| bun install | |
| bun run setup | |
| - name: Build binaries | |
| run: bun run build:all | |
| - name: Smoke test | |
| run: ./build/Release/igf-linux-x64 --help | |
| - name: Upload Binaries | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: cli-binaries | |
| path: | | |
| build/Release/igf-linux-x64 | |
| build/Release/igf-windows-x64.exe | |
| build/Release/igf-darwin-x64 | |
| build/Release/igf-darwin-arm64 |