-
Notifications
You must be signed in to change notification settings - Fork 65
45 lines (37 loc) · 1023 Bytes
/
test_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
42
43
44
45
# 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 -short ./...
env:
DISABLE_SM3NI: 1
DISABLE_SM4NI: 1
GODEBUG: x509sha1=1
GOARCH: ${{ matrix.arch }}
- name: Test Force SM4 Single Block with AES-NI
run: go test -v -short ./sm4/...
env:
DISABLE_SM4NI: 1
FORCE_SM4BLOCK_AESNI: 1
GOARCH: ${{ matrix.arch }}