mirror of
https://github.com/avinal/Krypto.git
synced 2026-01-10 23:28:36 +05:30
Merge branch 'main' of https://github.com/avinal/MCPS-CSD-327 into main
This commit is contained in:
45
.github/workflows/blank.yml
vendored
Normal file
45
.github/workflows/blank.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: build
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: ${{ matrix.config.name }}
|
||||||
|
runs-on: ${{ matrix.config.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
config:
|
||||||
|
- {
|
||||||
|
name: "Windows Latest MSVC",
|
||||||
|
os: windows-latest,
|
||||||
|
build_type: "Debug", cc: "cl", cxx: "cl"
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
name: "Ubuntu Latest GCC",
|
||||||
|
os: ubuntu-latest,
|
||||||
|
build_type: "Debug", cc: "gcc", cxx: "g++"
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
name: "macOS Latest Clang",
|
||||||
|
os: macos-latest,
|
||||||
|
build_type: "Debug", cc: "clang", cxx: "clang++"
|
||||||
|
}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: configure
|
||||||
|
shell: cmake -P {0}
|
||||||
|
run: |
|
||||||
|
set(ENV{CC} ${{matrix.config.cc}})
|
||||||
|
set(ENV{CXX} ${{matrix.config.cxx}})
|
||||||
|
- name: generate
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} ..
|
||||||
|
- name: build
|
||||||
|
run: cmake --build build --config ${{matrix.config.build_type}}
|
||||||
|
|
||||||
Reference in New Issue
Block a user