Skip to content

Commit

Permalink
set working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorWTang committed Jul 7, 2024
1 parent 7bce04f commit 208d90a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/target_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Create build directory
run: |
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
run: mkdir -p "$BUILD_DIR"

- name: Configure cmake
run: >
cd "$BUILD_DIR" &&
cmake
${{ github.workspace }}
-GNinja
Expand All @@ -40,9 +40,10 @@ jobs:
-DUPLOAD_METHOD=${{ matrix.target.UPLOAD_METHOD }}
-DOPENOCD_ADAPTER_SERIAL=${{ matrix.target.OPENOCD_ADAPTER_SERIAL }}
- name: Compile
run: ninja
run: cd "$BUILD_DIR" && ninja
- name: Run ctest
run: >
cd "$BUILD_DIR" &&
ctest
--repeat until-pass:3
--output-on-failure
Expand Down

0 comments on commit 208d90a

Please sign in to comment.