ci: init
Some checks failed
Test openperf / checkout_repos (native, stream) (push) Failing after 43s
Some checks failed
Test openperf / checkout_repos (native, stream) (push) Failing after 43s
This commit is contained in:
parent
d4748ac579
commit
e497bb5aff
2 changed files with 48 additions and 1 deletions
46
.gitea/workflows/build-and-test.yml
Normal file
46
.gitea/workflows/build-and-test.yml
Normal 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
3
.gitignore
vendored
|
@ -16,4 +16,5 @@ _*
|
|||
*~
|
||||
build/
|
||||
!.gitignore
|
||||
.vscode
|
||||
.vscode
|
||||
abstract-machine/
|
||||
|
|
Loading…
Add table
Reference in a new issue