fix arm64 again #5
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: "release" | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| release: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| arch: x64 | |
| suffix: linux-amd64 | |
| - os: ubuntu-latest | |
| arch: arm64 | |
| suffix: linux-arm64 | |
| name: "Release for ${{ matrix.suffix }}" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| # Enable QEMU for ARM builds | |
| - name: Build in ARM64 Docker container | |
| if: matrix.arch == 'arm64' | |
| run: | | |
| docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace node:18-bullseye bash -c " | |
| npm ci && | |
| npm run build && | |
| npm pack | |
| " | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| architecture: ${{ matrix.arch }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build application | |
| run: npm run build | |
| - name: Package application | |
| run: npm pack | |
| - name: Create release | |
| uses: marvinpinto/action-automatic-releases@latest | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| prerelease: false | |
| files: | | |
| *.tgz |