Skip to content

check input size before allocation (#21) #109

check input size before allocation (#21)

check input size before allocation (#21) #109

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
tags: [ '*' ]
pull_request:
env:
BUILD_DIR: build
CTEST_OUTPUT_ON_FAILURE: 1
GITHUB_HUNTER_USERNAME: ${{ secrets.HUNTER_USERNAME }}
GITHUB_HUNTER_TOKEN: ${{ secrets.HUNTER_TOKEN }}
CACHE_VERSION: v01
CACHE_PATHS: |
~/.ccache
~/.hunter
jobs:
MacOS:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ${{ env.CACHE_PATHS }}
key: ${{ github.job }}-${{ env.CACHE_VERSION }}
- name: build
run: ./scripts/build.sh
Linux:
strategy:
fail-fast: false
matrix:
options:
- name: "Linux: gcc-12"
run: ./scripts/build.sh -DCMAKE_CXX_COMPILER=g++-12
- name: "Linux: clang-14"
run: ./scripts/build.sh -DCMAKE_CXX_COMPILER=clang++
name: "${{ matrix.options.name }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ${{ env.CACHE_PATHS }}
key: ${{ github.job }}-${{ matrix.options.name }}-${{ env.CACHE_VERSION }}
- name: "${{ matrix.options.name }}"
run: "${{ matrix.options.run }}"
clang-tidy:
name: "Linux: clang-tidy"
runs-on: ubuntu-latest
container: qdrvm/kagome-dev@sha256:14d5aa92c971073e82ba9bbac9b615701e99c71f64e58bdd45e5b3dbc09944bd
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/cache@v2
with:
path: ${{ env.CACHE_PATHS }}
key: ${{ github.job }}-${{ env.CACHE_VERSION }}
- name: clang-tidy
env:
BUILD_TARGET: all
run: |
./scripts/build.sh
./scripts/generate_clang_tidy_diff.sh