Skip to content

Commit

Permalink
prepare qemu ci
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Oct 15, 2024
1 parent 064e363 commit 5d5ac7c
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/ci_qemu.yml → .github/workflows/arm64_qemu.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: arm64-qemu

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

test:
strategy:
matrix:
go-version: [1.18.x]
arch: [arm64]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Check out code
uses: actions/checkout@v4

- name: Test
run: go test -v ./...
env:
GOARCH: ${{ matrix.arch }}
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: arm64-qemu

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

test:
strategy:
matrix:
go-version: [1.18.x]
arch: [arm64]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Check out code
uses: actions/checkout@v4

- name: Test
run: go test -v ./...
env:
GOARCH: ${{ matrix.arch }}
35 changes: 35 additions & 0 deletions .github/workflows/ppc64le_qemu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: ppc64le-qemu

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

test:
strategy:
matrix:
go-version: [1.18.x]
arch: [ppc64le]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Check out code
uses: actions/checkout@v4

- name: Test
run: go test -v ./...
env:
GOARCH: ${{ matrix.arch }}

0 comments on commit 5d5ac7c

Please sign in to comment.