diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 231eec4..fe69614 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 @@ -18,11 +24,13 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2.3.4 - 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 @@ -53,13 +61,18 @@ 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/upload-release-asset@v1.0.2 env: @@ -67,7 +80,7 @@ jobs: 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