chore: update nuxt config #3
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 | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Devcontainer Image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: ./.devcontainer/Dockerfile | |
| load: true | |
| tags: dev-image:latest | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Build and Run Tests | |
| run: | | |
| docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace dev-image:latest \ | |
| bash -c "cmake -S . -B build -DBUILD_TESTING=ON -DBUILD_PICO=OFF && \ | |
| cmake --build build --parallel $(nproc) && \ | |
| ctest --test-dir build --output-on-failure" | |
| - name: Build Pico Firmware | |
| run: | | |
| docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace dev-image:latest \ | |
| bash -c "cmake -S . -B build-pico -DBUILD_PICO=ON && \ | |
| cmake --build build-pico --parallel \$(nproc)" |