-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.42 KB
/
ci.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
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build_and_test:
runs-on: ubuntu-latest
if: ${{ github.repository == 'codewars/riscv' }}
steps:
- uses: actions/checkout@v3
- name: Install qemu-user-static
run: |
cd /tmp
wget -q -O qemu-user-static.deb http://ftp.us.debian.org/debian/pool/main/q/qemu/qemu-user-static_7.1+dfsg-2~bpo11+3_amd64.deb
sudo apt install ./qemu-user-static.deb
rm ./qemu-user-static.deb
qemu-riscv64-static --version
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build image
uses: docker/build-push-action@v3
with:
context: .
push: false
# Make the image available in next step
load: true
platforms: linux/riscv64
tags: ghcr.io/codewars/riscv:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run multiply example
run: bin/run multiply
- name: Run multiply-failing example
run: bin/run multiply-failing || true
- name: Run syntax-error example
run: bin/run syntax-error || true
- name: Run invalid-regname example
run: bin/run invalid-regname || true
- name: Run rvv-memcpy example
run: bin/run rvv-memcpy
- name: Run rvk-sha256sig0 example
run: bin/run rvk-sha256sig0