Version 1.2.0 bump #338
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-dorado | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04, windows-2022] | |
| include: | |
| - os: windows-2022 | |
| arch: "-A x64" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Clean up diskspace | |
| if: matrix.os == 'ubuntu-24.04' | |
| run: | | |
| sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost /usr/local/lib/android "$AGENT_TOOLSDIRECTORY" | |
| sudo swapoff -a || true | |
| sudo rm -f /mnt/swapfile || true | |
| sudo apt-get remove -y '^aspnetcore-.*' || true | |
| sudo apt-get remove -y '^dotnet-.*' --fix-missing || true | |
| sudo apt-get remove -y '^llvm-.*' --fix-missing || true | |
| sudo apt-get remove -y 'php.*' --fix-missing || true | |
| sudo apt-get remove -y '^mongodb-.*' --fix-missing || true | |
| sudo apt-get remove -y '^mysql-.*' --fix-missing || true | |
| sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing || true | |
| sudo apt-get remove -y google-cloud-sdk --fix-missing || true | |
| sudo apt-get remove -y google-cloud-cli --fix-missing || true | |
| sudo apt-get autoremove -y || true | |
| sudo apt-get clean || true | |
| - name: Set up cmake | |
| uses: jwlawson/[email protected] | |
| with: | |
| cmake-version: '3.25.x' | |
| - uses: Jimver/[email protected] | |
| id: cuda-toolkit | |
| with: | |
| cuda: '12.8.0' | |
| - name: Install dependencies from apt | |
| if: matrix.os == 'ubuntu-24.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends libhdf5-dev libssl-dev autoconf | |
| - name: Set up Windows path | |
| uses: myci-actions/export-env-var-powershell@1 | |
| if: matrix.os == 'windows-2022' | |
| with: | |
| name: PATH | |
| value: C:\a\dorado\dorado\dist\bin;$env:PATH | |
| - name: Build dorado | |
| run: | | |
| cmake -S . -B cmake-build ${{ matrix.arch }} | |
| cmake --build cmake-build --config Release -j 8 | |
| - name: Cleanup torch | |
| uses: JesseTG/[email protected] | |
| with: | |
| path: C:\a\dorado\dorado\3rdparty | |
| - name: Test dorado | |
| run: | | |
| cmake --build cmake-build --config Release --target install -j 8 | |
| ctest -C Release --test-dir cmake-build --output-on-failure --verbose |