Fix gcc warnings #5
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 and Test (aarch64) | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04-arm | |
| env: | |
| VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| cmake \ | |
| ninja-build \ | |
| curl \ | |
| zip \ | |
| unzip \ | |
| tar \ | |
| pkg-config \ | |
| git | |
| - name: Clone vcpkg | |
| run: | | |
| git clone https://github.com/microsoft/vcpkg.git "$VCPKG_ROOT" | |
| - name: Bootstrap vcpkg | |
| run: | | |
| "$VCPKG_ROOT/bootstrap-vcpkg.sh" -disableMetrics | |
| - name: Add vcpkg to PATH | |
| run: echo "$VCPKG_ROOT" >> $GITHUB_PATH | |
| - name: Cache vcpkg packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ${{ env.VCPKG_ROOT }}/installed | |
| ${{ env.VCPKG_ROOT }}/packages | |
| ${{ env.VCPKG_ROOT }}/buildtrees | |
| ${{ env.VCPKG_ROOT }}/downloads | |
| key: vcpkg-aarch64-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }} | |
| restore-keys: | | |
| vcpkg-aarch64- | |
| - name: Configure CMake Debug | |
| run: | | |
| cmake -S . -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" | |
| - name: Build | |
| run: ninja -C build | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure | |
| - name: Cleanup build | |
| run: rm -rf build | |
| - name: Configure CMake Release | |
| run: | | |
| cmake -S . -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" | |
| - name: Build | |
| run: ninja -C build | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure | |
| - name: Cleanup build | |
| run: rm -rf build |