more windows fixes #3
Workflow file for this run
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: package builds on push | |
| on: | |
| push: | |
| jobs: | |
| package-installers: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| command: pack macos | |
| artifact_name: macos-pkg | |
| artifact_path: cli/dist/**/*.pkg | |
| - os: windows-latest | |
| command: pack win --targets win32-x64 | |
| artifact_name: windows-installer | |
| artifact_path: cli/dist/**/*.exe | |
| - os: ubuntu-latest | |
| command: pack deb | |
| artifact_name: linux-deb | |
| artifact_path: cli/dist/**/*.deb | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run build | |
| - name: Install NSIS (Windows) | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| run: choco install nsis.portable --no-progress -y | |
| - name: Build installer | |
| run: pnpm -C cli exec oclif ${{ matrix.command }} | |
| - name: Upload installer artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact_name }} | |
| path: ${{ matrix.artifact_path }} | |
| package-tarballs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run build | |
| - name: Install 7-zip for packaging | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y p7zip-full | |
| - name: Build tarballs | |
| run: pnpm -C cli exec oclif pack tarballs | |
| - name: Upload tarball artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tarballs | |
| path: | | |
| cli/dist/**/*.tar.gz | |
| cli/dist/**/*.tar.xz |