Skip to content

Shadowed variable in lambda function resulted in warning #57

Shadowed variable in lambda function resulted in warning

Shadowed variable in lambda function resulted in warning #57

Workflow file for this run

name: Build gcc
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
shell: bash
env:
CC: gcc-10
CXX: g++-10
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config Release
- name: Make
run: cd ${{github.workspace}}/build && make
- name: Test
run: cd ${{github.workspace}}/build && ctest
debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug
shell: bash
env:
CC: gcc-10
CXX: g++-10
- name: Build
run: cmake --build ${{github.workspace}}/build --config Debug
- name: Make
run: cd ${{github.workspace}}/build && make
- name: Test
run: cd ${{github.workspace}}/build && ctest