ci: replace SSH deploy key with MY_REPO_PAT for submodule auth #24
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Unit Tests | |
| on: | |
| schedule: | |
| - cron: '0 1 * * *' | |
| push: | |
| # pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-unit-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| board: | |
| - mazduino-lite | |
| - mazduino-compact | |
| - mazduino-mini6ch | |
| - mazduino-mega100 | |
| - mazduino-mega100-512 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| token: ${{ secrets.MY_REPO_PAT }} | |
| - name: Checkout submodules | |
| run: | | |
| git config --global url."https://x-access-token:${{ secrets.MY_REPO_PAT }}@github.com/".insteadOf "git@github.com:" | |
| git submodule update --init --force --depth=1 | |
| - name: Checkout rusefi submodules | |
| run: git -C ext/rusefi submodule update --init --force --depth=1 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '11' | |
| - name: Print Compiler version | |
| run: gcc -v | |
| - name: Set Env Variables | |
| run: | | |
| echo "ABSOLUTE_BOARD_DIR=${{ github.workspace }}/boards/${{ matrix.board }}" >> $GITHUB_ENV | |
| echo "META_OUTPUT_ROOT_FOLDER=$(realpath --relative-to=ext/rusefi/firmware generated)/" >> $GITHUB_ENV | |
| - name: Compile and execute Unit Tests | |
| run: | | |
| cd ext/rusefi/unit_tests/ | |
| MI="../../../boards/${{ matrix.board }}/meta-info.env" | |
| source ../firmware/config/boards/common_script_read_meta_env.inc "$MI" | |
| make -j$(nproc) | |
| timeout 20m build/rusefi_test |