diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fded3fe2..c1098e38 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: ci +name: Wrangler CI on: push: @@ -12,6 +12,11 @@ on: jobs: ci: runs-on : ubuntu-latest + strategy: + matrix: + arch: + - amd64 + - arm64 steps: - name : Checkout repository # https://github.com/actions/checkout/releases/tag/v4.1.1 @@ -21,6 +26,11 @@ jobs: uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: go-version-file: 'go.mod' + - name: Setup Environment Variables + run: | + echo "GOOS=${{ matrix.os }}" >> "$GITHUB_ENV" + echo "GOARCH=${{ matrix.arch }}" >> "$GITHUB_ENV" + echo "ARCH=${{ matrix.arch }}" >> "$GITHUB_ENV" - name : Install mockgen run: go install github.com/golang/mock/mockgen@v1.6.0 - name : Run CI