Skip to content

Commit

Permalink
update build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Tang committed Jul 22, 2024
1 parent adb6864 commit f0bbf85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/target_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
# - MBED_TARGET: NUCLEO_H723ZG
runs-on: ${{ matrix.target.MBED_TARGET }}
env:
BUILD_DIR: ~/actions-runner/_build_${{ matrix.target.MBED_TARGET }}
JUNIT_OUTPUT: ${{ github.workspace }}/mbed-tests-${{ matrix.target.MBED_TARGET }}.xml
steps:
- uses: actions/checkout@v4
- name: Create build directory
run: mkdir -p "$BUILD_DIR"
- name: Set build variables
run: |
echo "MBED_GREENTEA_SERIAL_PORT=$(jq -r --arg RUNNER_NAME ${{ runner.name }} '.[$RUNNER_NAME].MBED_GREENTEA_SERIAL_PORT' runners/runner_configuration.json)" >> $GITHUB_ENV
echo "UPLOAD_METHOD=$(jq -r --arg RUNNER_NAME ${{ runner.name }} '.[$RUNNER_NAME].UPLOAD_METHOD' runners/runner_configuration.json)" >> $GITHUB_ENV
echo "OPENOCD_ADAPTER_SERIAL=$(jq -r --arg RUNNER_NAME ${{ runner.name }} '.[$RUNNER_NAME].OPENOCD_ADAPTER_SERIAL' runners/runner_configuration.json)" >> $GITHUB_ENV
echo "BUILD_DIR=$HOME/actions-runner/${{ runner.name }}/_build" >> $GITHUB_ENV
- name: Create build directory
run: mkdir -p "$BUILD_DIR"
- name: Configure cmake
run: >
cd "$BUILD_DIR" &&
Expand Down

0 comments on commit f0bbf85

Please sign in to comment.