fix-ci #27
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: CMake Build | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| container: ubuntu:24.10 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Update apt registry | |
| run: add-apt-repository ppa:apt-fast/stable && apt update && apt install -y --no-install-recommends sudo apt-fast | |
| - uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: uuid-dev clang-19 libcxx-19 | |
| - name: Purge gcc | |
| run: sudo apt-get purge gcc | |
| - name: Cache Build | |
| id: restore-cache-build | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: build | |
| key: ${{ runner.os }}-build | |
| - name: CMake Action | |
| uses: threeal/[email protected] | |
| with: | |
| options: | | |
| CMAKE_BUILD_TYPE=Release | |
| ETCDF_BUILD_TESTS=true | |
| CMAKE_CXX_FLAGS='-D__cpp_concepts=202002L' | |
| CXX_FILESYSTEM_HAVE_FS=TRUE | |
| CMAKE_EXE_LINKER_FLAGS='-static' | |
| run-build: true | |
| c-compiler: clang-19 | |
| cxx-compiler: clang++-19 | |
| - uses: actions/cache/save@v3 | |
| name: Save build cache | |
| with: | |
| path: build | |
| key: ${{ runner.os }}-build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: 'ubuntu-cli' | |
| path: build/bin/etcdf | |
| if-no-files-found: error | |
| retention-days: 90 | |
| compression-level: 6 | |
| overwrite: true |