ci: build nix packages
All checks were successful
Build nix packages / build-matrix (default) (push) Successful in 29s

This commit is contained in:
xinyangli 2024-08-14 15:29:58 +08:00
parent 3cbee013c0
commit 7b3881a971
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
3 changed files with 37 additions and 6 deletions

8
.gdbinit Normal file
View file

@ -0,0 +1,8 @@
file /nix/store/ijxm784gr0sx5p4d92rlag0ippyd0mvm-am-kernel-riscv32-none-elf-2024-07-10/libexec/am-kernels/bench
set substitute-path /build/am-kernels /home/xin/repo/ysyx-workbench/am-kernels
set substitute-path /build/abstract-machine /home/xin/repo/ysyx-workbench/abstract-machine
# set debug remote 1
target remote /tmp/gdbstub-diffu.sock
break *halt + 24

View file

@ -0,0 +1,20 @@
name: Build nix packages
on: [push]
jobs:
build-matrix:
runs-on: nix
strategy:
matrix:
package: [ "default" ]
steps:
- uses: https://github.com/cachix/cachix-action@v14
with:
name: ysyx
authToken: '${{ secrets.CACHIX_SIGNING_KEY }}'
- uses: actions/checkout@v4
- name: Build
run: |
nix build -L .#${{ matrix.package }}

View file

@ -1,14 +1,17 @@
# ref = "/home/xin/repo/spike-diff/build/lib/libspike-diff.so" # ref = "/home/xin/repo/spike-diff/build/lib/libspike-diff.so"
# ref-prefix = "spike_" # ref-prefix = "spike_"
ref= "/home/xin/repo/ysyx-workbench/nemu/build/riscv32-nemu-interpreter-so"
ref-prefix = "nemu_"
# dut = "/home/xin/repo/ysyx-workbench/nemu/build/riscv32-nemu-interpreter-so" # dut = "/home/xin/repo/ysyx-workbench/nemu/build/riscv32-nemu-interpreter-so"
# dut-prefix = "nemu_" # dut-prefix = "nemu_"
ref = /home/xin/repo/ysyx-workbench/nemu/build/riscv32-nemu-interpreter-so dut = "/home/xin/repo/ysyx-workbench/npc/build/csrc/Flow/libFlow.so"
ref-prefix = nemu_ dut-prefix = "npc_"
dut = "/home/xin/repo/spike-diff/build/lib/libspike-diff.so"
dut-prefix = "spike_" # dut = "/home/xin/repo/ysyx-workbench/nemu/build/riscv32-nemu-interpreter-so"
# dut-prefix = "nemu_"
listen = "/tmp/gdbstub-diffu.sock" listen = "/tmp/gdbstub-diffu.sock"
# listen = "127.0.0.1:1234" # listen = "127.0.0.1:1234"
# memory = "/nix/store/37986mdgsqm5m8w74k0f5llzqhxgsbnv-am-kernel-riscv32-none-elf-2024-07-10/share/am-kernels/string.bin" images-path = "/nix/store/z7mc0y608145cfwlb2g1gsii7bij7li1-am-kernel-riscv32-none-elf-2024-07-10/share/am-kernels"
memory = "./add.bin" memory = "bench.bin"
# g = true # g = true