From 9688508e1e667644f4bdb687cce1f7382843bad9 Mon Sep 17 00:00:00 2001 From: Clo91eaf Date: Fri, 10 May 2024 13:15:11 +0800 Subject: [PATCH] [ci] fix ci --- .github/workflows/test-template.yml | 25 ------------------------- .github/workflows/test.yml | 16 ++++++++++++---- 2 files changed, 12 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/test-template.yml diff --git a/.github/workflows/test-template.yml b/.github/workflows/test-template.yml deleted file mode 100644 index 24d94d8..0000000 --- a/.github/workflows/test-template.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Test Template -on: - workflow_call: - inputs: - test-name: - required: true - type: string - secrets: - token: - required: true -jobs: - test: - runs-on: ubuntu-latest - container: - image: ubuntu:23.04 - steps: - - name: checkout - uses: actions/checkout@v2 - with: - submodules: true - - name: verilator - run: | - sudo apt-get install verilator - - name: test - run: cargo test --test ${{ inputs.test-name }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 692761e..828da46 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,10 +6,18 @@ on: branches: [ master ] jobs: am-test: - uses: ./.github/workflows/test-template.yml - with: - test-name: am-tests - token: ${{ secrets.YOUR_SECRET_TOKEN }} + runs-on: ubuntu-latest + container: + image: ubuntu:23.04 + steps: + - name: checkout + uses: actions/checkout@v2 + with: + submodules: true + - name: verilator + run: sudo apt-get install verilator + - name: test + run: cargo test --test ${{ inputs.test-name }} # riscv-test-rv64ui: # name: riscv-test-rv64ui # runs-on: ubuntu-latest