Skip to content
Snippets Groups Projects
Select Git revision
  • ad4a3f028a9db7697e3c4d572acf3d95996cda74
  • develop default protected
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • save_clemence
  • origin/stage/bouguettaia
  • feature/kinetic-schemes
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

build.yml

Blame
  • build.yml 1.23 KiB
    name: Build
    on:
      push:
        branches:
          - master
          - v*
        tags:
          - "*"
      pull_request:
        branches:
          - master
    
    jobs:
      single-header:
        name: Single header
        runs-on: ubuntu-latest
        steps:
    
        - uses: actions/checkout@v2
          with:
            submodules: true
    
        - uses: actions/setup-python@v2
    
        - name: Prepare CMake config
          run: cmake -S . -B build -DCLI11_SINGLE_FILE=ON
    
        - name: Make package
          run: cmake --build build --target package_source
    
        - name: Copy source packages
          run: |
            mkdir -p CLI11-Source
            cp build/CLI11-*-Source.* CLI11-Source
            cp build/CLI11-*-Source.* .
    
        - name: Make header
          run: cmake --build build --target CLI11-generate-single-file
    
        - name: Copy file to main folder
          run: cp build/include/CLI11.hpp CLI11.hpp
    
        - uses: actions/upload-artifact@v2
          with:
            name: CLI11.hpp
            path: CLI11.hpp
    
        - uses: actions/upload-artifact@v2
          with:
            name: CLI11-Source
            path: CLI11-Source
    
        - name: Release
          uses: softprops/action-gh-release@v1
          if: startsWith(github.ref, 'refs/tags/')
          with:
            files: |
              CLI11.hpp
          env:
            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}