-
Notifications
You must be signed in to change notification settings - Fork 707
chore(CI): Add QEMU based CI Workflow #986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ahrtr
merged 1 commit into
etcd-io:main
from
Elbehery:20250612-use-qemu-github-workflow
Jun 20, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| --- | ||
| name: Cross-Platform Build Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| build-aix: | ||
| strategy: | ||
| matrix: | ||
| goarch: [ppc64] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - id: goversion | ||
| run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version: ${{ steps.goversion.outputs.goversion }} | ||
| - name: Run golangci-lint | ||
| uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | ||
| with: | ||
| version: v2.1.6 | ||
|
|
||
| - name: Build for aix/${{ matrix.goarch }} | ||
| run: | | ||
| GOOS=aix GOARCH=${{ matrix.GOARCH }} go build ./... | ||
|
|
||
| build-android: | ||
| strategy: | ||
| matrix: | ||
| goarch: [arm64] | ||
Elbehery marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - id: goversion | ||
| run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version: ${{ steps.goversion.outputs.goversion }} | ||
| - name: Run golangci-lint | ||
| uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | ||
| with: | ||
| version: v2.1.6 | ||
|
|
||
| - name: Build for android/${{ matrix.goarch }} | ||
| run: | | ||
| GOOS=android GOARCH=${{ matrix.goarch }} go build ./... | ||
|
|
||
| build-linux: | ||
| strategy: | ||
| matrix: | ||
| goarch: [386, amd64, arm, arm64, loong64, mips, mips64, mips64le, mipsle, ppc64, ppc64le, riscv64, s390x] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - id: goversion | ||
| run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version: ${{ steps.goversion.outputs.goversion }} | ||
| - name: Run golangci-lint | ||
| uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | ||
| with: | ||
| version: v2.1.6 | ||
|
|
||
| - name: Build for linux/${{ matrix.goarch }} | ||
| run: | | ||
| GOOS=linux GOARCH=${{ matrix.GOARCH }} go build ./... | ||
|
|
||
| build-openbsd: | ||
| strategy: | ||
| matrix: | ||
| goarch: [386, amd64, arm, arm64, ppc64, riscv64] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - id: goversion | ||
| run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version: ${{ steps.goversion.outputs.goversion }} | ||
| - name: Run golangci-lint | ||
| uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | ||
| with: | ||
| version: v2.1.6 | ||
|
|
||
| - name: Build for openbsd/${{ matrix.goarch }} | ||
| run: | | ||
| GOOS=openbsd GOARCH=${{ matrix.GOARCH }} go build ./... | ||
|
|
||
| build-solaris: | ||
| strategy: | ||
| matrix: | ||
| goarch: [amd64] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - id: goversion | ||
| run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version: ${{ steps.goversion.outputs.goversion }} | ||
| - name: Run golangci-lint | ||
| uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | ||
| with: | ||
| version: v2.1.6 | ||
|
|
||
| - name: Build for solaris/${{ matrix.goarch }} | ||
| run: | | ||
| GOOS=solaris GOARCH=${{ matrix.GOARCH }} go build ./... | ||
|
|
||
| build-windows: | ||
| strategy: | ||
| matrix: | ||
| goarch: [386, amd64, arm64] | ||
| runs-on: windows-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - id: goversion | ||
| run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version: ${{ steps.goversion.outputs.goversion }} | ||
| - name: Run golangci-lint | ||
| uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | ||
| with: | ||
| version: v2.1.6 | ||
|
|
||
| - name: Build for windows/${{ matrix.goarch }} | ||
| run: | | ||
| $env:GOOS="windows"; $env:GOARCH="${{ matrix.GOARCH }}"; go build ./... | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.