-
Notifications
You must be signed in to change notification settings - Fork 29
41 lines (33 loc) · 1.01 KB
/
qemu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# name: Cross-Architecture Test
# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
# jobs:
# test:
# strategy:
# matrix:
# include:
# - arch: amd64
# qemu_arch: x86_64
# - arch: arm64v8
# qemu_arch: aarch64
# - arch: i386
# qemu_arch: i386
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# with:
# platforms: ${{ matrix.qemu_arch }}
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Available platforms
# run: echo ${{ steps.qemu.outputs.platforms }}
# - name: Run cargo test
# run: |
# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
# docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp ${{ matrix.arch }}/rust cargo test