ci: init
Some checks failed
Test openperf / checkout_repos (native, stream) (push) Failing after 43s

This commit is contained in:
xinyangli 2024-11-09 14:10:13 +08:00
parent d4748ac579
commit e497bb5aff
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
2 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,46 @@
name: Test openperf
on: [push, pull_request, workflow_dispatch]
jobs:
checkout_repos:
runs-on: nix
strategy:
matrix:
arch: ["native"] # Define architectures here
test_name: ["stream"] # Define test names here
steps:
- name: Checkout Main Repo (openperf)
uses: actions/checkout@v4
with:
repository: openperf/openperf
path: openperf
- name: Checkout Abstract Machine Repo
uses: actions/checkout@v4
with:
ssh-key: '${{ secrets.DEPLOY_KEY }}'
ssh-user: 'forgejo'
ssh-known-hosts: 'git.xinyang.life ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICctRGZWr5+pxPh+8ABY4kjC57khQzOpXNz3CPaEDZuO'
repository: openperf/abstract-machine
path: abstract-machine
- name: Checkout Nemu Repo
uses: actions/checkout@v4
with:
ssh-key: '${{ secrets.DEPLOY_KEY }}'
ssh-user: 'forgejo'
ssh-known-hosts: 'git.xinyang.life ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICctRGZWr5+pxPh+8ABY4kjC57khQzOpXNz3CPaEDZuO'
repository: openperf/nemu
path: nemu
- name: Build and Run with Matrix
env:
AM_HOME: "${{ github.workspace }}/abstract-machine"
NEMU_HOME: "${{ github.workspace }}/nemu"
run: |
tree .
nix develop .#native --impure --command make ARCH=${{ matrix.arch }} ALL=${{ matrix.test_name }} run

3
.gitignore vendored
View file

@ -16,4 +16,5 @@ _*
*~
build/
!.gitignore
.vscode
.vscode
abstract-machine/