Commit c0f8ab17 authored by protolambda's avatar protolambda

ci: mipsevm Go test workflow

parent 653ca53f
on: [push, pull_request]
name: Go Test
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
- uses: actions/checkout@v3
- name: Install libunicorn
working-directory: .
run: make libunicorn
- uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Build examples
working-directory: ./example
run: make bin/minimal.elf
- name: mipsevm tests
working-directory: ./mipsevm
run: go test ./...
[submodule "unicorn"]
path = unicorn
url = https://github.com/unicorn-engine/unicorn.git
SHELL := /bin/bash SHELL := /bin/bash
build: submodules libunicorn minigeth_mips minigeth_prefetch mipsevm contracts build: submodules libunicorn mipsevm contracts
.PHONY: build .PHONY: build
submodules: submodules:
...@@ -38,21 +38,10 @@ libunicorn_rebuild: ...@@ -38,21 +38,10 @@ libunicorn_rebuild:
make libunicorn make libunicorn
.PHONY: libunicorn_rebuild .PHONY: libunicorn_rebuild
minigeth_mips:
cd mipigo && ./build.sh
.PHONY: minigeth_mips
minigeth_prefetch:
cd minigeth && go build
.PHONY: minigeth_prefetch
mipsevm: mipsevm:
cd mipsevm && go build cd mipsevm && go build
.PHONY: mipsevm .PHONY: mipsevm
contracts: nodejs
npx hardhat compile
.PHONY: contracts
nodejs: nodejs:
if [ -x "$$(command -v pnpm)" ]; then \ if [ -x "$$(command -v pnpm)" ]; then \
......
Subproject commit 7b8c63dfe650b5d4d2bf684526161971925e6350
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment