From fb7a3aef118c1101e5e9bb3e92b3734f1b6043c0 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 16 Oct 2024 17:52:45 +0800 Subject: [PATCH] s390x: enable CI first --- .github/workflows/s390x_qemu.yml | 35 ++++++++++++++++++++++++++++++++ README-CN.md | 1 + README.md | 1 + 3 files changed, 37 insertions(+) create mode 100644 .github/workflows/s390x_qemu.yml diff --git a/.github/workflows/s390x_qemu.yml b/.github/workflows/s390x_qemu.yml new file mode 100644 index 0000000..aa008d2 --- /dev/null +++ b/.github/workflows/s390x_qemu.yml @@ -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: s390x-qemu + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + test: + strategy: + matrix: + go-version: [1.18.x] + arch: [s390x] + 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 }} diff --git a/README-CN.md b/README-CN.md index 7b2835e..b6a3ebc 100644 --- a/README-CN.md +++ b/README-CN.md @@ -6,6 +6,7 @@ [![ci](https://github.com/emmansun/base64/actions/workflows/ci.yml/badge.svg)](https://github.com/emmansun/base64/actions/workflows/ci.yml) [![arm64](https://github.com/emmansun/base64/actions/workflows/arm64_qemu.yml/badge.svg)](https://github.com/emmansun/base64/actions/workflows/arm64_qemu.yml) [![ppc64le](https://github.com/emmansun/base64/actions/workflows/ppc64le_qemu.yml/badge.svg)](https://github.com/emmansun/base64/actions/workflows/ppc64le_qemu.yml) +[![s390x](https://github.com/emmansun/base64/actions/workflows/s390x_qemu.yml/badge.svg)](https://github.com/emmansun/base64/actions/workflows/s390x_qemu.yml) [![Documentation](https://godoc.org/github.com/emmansun/base64?status.svg)](https://godoc.org/github.com/emmansun/base64) ![GitHub go.mod Go version (branch)](https://img.shields.io/github/go-mod/go-version/emmansun/base64) [![Release](https://img.shields.io/github/release/emmansun/base64/all.svg)](https://github.com/emmansun/base64/releases) diff --git a/README.md b/README.md index 606f7c4..e8a0f39 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Base64 with SIMD acceleration [![ci](https://github.com/emmansun/base64/actions/workflows/ci.yml/badge.svg)](https://github.com/emmansun/base64/actions/workflows/ci.yml) [![arm64](https://github.com/emmansun/base64/actions/workflows/arm64_qemu.yml/badge.svg)](https://github.com/emmansun/base64/actions/workflows/arm64_qemu.yml) [![ppc64le](https://github.com/emmansun/base64/actions/workflows/ppc64le_qemu.yml/badge.svg)](https://github.com/emmansun/base64/actions/workflows/ppc64le_qemu.yml) +[![s390x](https://github.com/emmansun/base64/actions/workflows/s390x_qemu.yml/badge.svg)](https://github.com/emmansun/base64/actions/workflows/s390x_qemu.yml) [![Documentation](https://godoc.org/github.com/emmansun/base64?status.svg)](https://godoc.org/github.com/emmansun/base64) ![GitHub go.mod Go version (branch)](https://img.shields.io/github/go-mod/go-version/emmansun/base64) [![Release](https://img.shields.io/github/release/emmansun/base64/all.svg)](https://github.com/emmansun/base64/releases)