Skip to content

Commit 892c6b1

Browse files
committed
.github: use qemu to test on various architectures
1 parent db04491 commit 892c6b1

3 files changed

Lines changed: 38 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on: [push, pull_request]
2+
name: Test
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Install Go
8+
uses: actions/setup-go@v2
9+
with:
10+
go-version: 1.16.x
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
- name: Qemu
14+
id: qemu
15+
uses: docker/setup-qemu-action@v1
16+
with:
17+
image: tonistiigi/binfmt:latest
18+
platforms: all
19+
- name: Test
20+
run: |
21+
# amd64: little endian 64 bits
22+
go test -coverprofile coverage.txt
23+
go test -tags bitstring_debug .
24+
# Big endian 64
25+
GOARCH=ppc64 go test
26+
# Little endian 32
27+
GOARCH=arm go test
28+
# Big endian 32
29+
GOARCH=mips go test
30+
- name: Codecov
31+
run: bash <(curl -s https://codecov.io/bash)

.github/workflows/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"

.github/workflows/test.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)