-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (51 loc) · 1.9 KB
/
OpenSSL_Test_codeql.yml
File metadata and controls
60 lines (51 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -----------------------------------------------------
# Copyright Iliass Mahjoub 2023.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
# -----------------------------------------------------
name: "CodeQL"
on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
analyze:
name: Analyze
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ cpp ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- uses: ilammy/msvc-dev-cmd@v1
- name: msvc-release-x64
shell: cmd
run: |
set INCLUDE=%cd%;%INCLUDE%
echo "print perl version"
perl -v
echo "make output dir if does not exist"
mkdir -p %cd%\OpenSSL_Lib\_Bin\OpenSSL_Lib_Release_x64
echo "Build OpenSSL_Lib"
perl .\OpenSSL_Lib\Configure VC-WIN64A no-asm --prefix=%cd%\OpenSSL_Lib\_Bin\OpenSSL_Lib_Release_x64 --openssldir=%cd%\OpenSSL_Lib no-shared
nmake install_sw
echo "Build and Run OpenSSL_Test"
set INCLUDE=%cd%\OpenSSL_Lib\_Bin\OpenSSL_Lib_Release_x64\include;%INCLUDE%
set "LIB=%cd%\OpenSSL_Lib\_Bin\OpenSSL_Lib_Release_x64\lib;%LIB%"
MSBuild -m OpenSSL_withVisualStudio.sln -p:useenv=true -p:Configuration=OpenSSL_Test_Release -p:Platform=x64 /t:OpenSSL_Test:Rebuild
dir %cd%\OpenSSL_Test\_Bin\OpenSSL_Test_Release_x64\OpenSSL_Test.exe
%cd%\OpenSSL_Test\_Bin\OpenSSL_Test_Release_x64\OpenSSL_Test.exe