From 6e2cc88e3a7e5bea0f5bbf779c18e90e91a09e9d Mon Sep 17 00:00:00 2001 From: Christopher Swenson Date: Tue, 26 Nov 2024 13:38:29 -0800 Subject: [PATCH] Use pushd and popd; allow to run manually --- .github/workflows/compliance.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml index 4df5830..8413703 100644 --- a/.github/workflows/compliance.yml +++ b/.github/workflows/compliance.yml @@ -5,6 +5,8 @@ name: RISC-V Compliance tests on: schedule: - cron: '0 0 * * *' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: jobs: compliance: @@ -28,13 +30,14 @@ jobs: - name: Install riscv-isa-sim run: | git clone https://github.com/riscv-software-src/riscv-isa-sim.git && \ - cd riscv-isa-sim && \ + pushd riscv-isa-sim && \ mkdir build && \ - cd build && \ + pushd build && \ ../configure --prefix=/usr && \ make -j$(nproc) && \ sudo make install && \ - cd ../.. + popd && \ + popd - name: Install Sail run: | opam init -a -y && \ @@ -43,10 +46,10 @@ jobs: - name: Install Sail RISC-V run: | git clone https://github.com/riscv/sail-riscv.git && \ - cd sail-riscv && \ + pushd sail-riscv && \ make c_emulator/riscv_sim_RV32 ARCH=32 -j$(nproc) && \ sudo cp -r c_emulator/riscv_sim_RV32 /usr/bin && \ - cd .. + popd - name: Install Rust tools run: rustup update - name: Checkout RISC-V tests