Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ jobs:
platform:
- macos-latest
- ubuntu-latest
goarch:
- amd64
- arm64
exclude:
- platform: ubuntu-latest
goarch: arm64
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Go 1.24
Expand All @@ -18,11 +24,13 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/[email protected]
- name: Make
env:
GOARCH: ${{ matrix.goarch }}
run: make continuous-integration
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}
name: ${{ runner.os }}-${{ matrix.goarch }}
path: plugin
release:
name: Release
Expand Down Expand Up @@ -53,21 +61,26 @@ jobs:
os:
- name: macOS
kernel: darwin
goarch: amd64
- name: macOS
kernel: darwin
goarch: arm64
- name: Linux
kernel: linux
goarch: amd64
steps:
- name: Download ${{ matrix.os.name }} Artifact
- name: Download ${{ matrix.os.name }}-${{ matrix.os.goarch }} Artifact
uses: actions/download-artifact@v4
with:
name: ${{ matrix.os.name }}
name: ${{ matrix.os.name }}-${{ matrix.os.goarch }}
- name: Upload ${{ matrix.os.name }} Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload-url }}
asset_path: ./plugin
asset_name: plugin-${{ matrix.os.kernel }}-amd64
asset_name: plugin-${{ matrix.os.kernel }}-${{ matrix.os.goarch }}
asset_content_type: application/octet-stream
publish-script:
name: Publish Script
Expand Down
Loading