Skip to content

Commit

Permalink
feat: change building system to rollup, compiling linter into a binary
Browse files Browse the repository at this point in the history
  • Loading branch information
zavoloklom committed Nov 13, 2024
1 parent 0e33b8a commit b8a7bc4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
- name: Build the project
run: npm run build

- name: Set up QEMU for multi-arch
uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64

- name: Build SEA for Alpine amd64
run: docker run --rm --platform linux/amd64 -v "$PWD":/app -w /app node:20.18.0-alpine ./scripts/generate-sea.sh ./pkg/dclint-alpine-amd64

Expand Down Expand Up @@ -117,6 +122,43 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

# Upload binary files to GitHub Release
- name: Upload Alpine Binary
uses: actions/upload-release-asset@v1
if: steps.release.outputs.new_release == 'true'
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./pkg/dclint-alpine-amd64
asset_name: dclint-alpine-amd64
asset_content_type: application/octet-stream

- name: Upload Bullseye Binary
uses: actions/upload-release-asset@v1
if: steps.release.outputs.new_release == 'true'
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./pkg/dclint-bullseye-amd64
asset_name: dclint-bullseye-amd64
asset_content_type: application/octet-stream

- name: Upload Alpine ARM64 Binary
uses: actions/upload-release-asset@v1
if: steps.release.outputs.new_release == 'true'
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./pkg/dclint-alpine-arm64
asset_name: dclint-alpine-arm64
asset_content_type: application/octet-stream

- name: Upload Bullseye ARM64 Binary
uses: actions/upload-release-asset@v1
if: steps.release.outputs.new_release == 'true'
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./pkg/dclint-bullseye-arm64
asset_name: dclint-bullseye-arm64
asset_content_type: application/octet-stream

- name: Upload release artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit b8a7bc4

Please sign in to comment.