4 OPENSSL_BRANCH: openssl-3.0
5 #RPATH: "-Wl,-rpath=${PREFIX}/lib"
7 #PATH: ${PREFIX}/bin:${PATH}
13 # The branches below must be a subset of the branches above
21 runs-on: ubuntu-latest
24 - name: Checkout repository
25 uses: actions/checkout@v2
27 # We must fetch at least the immediate parents so that if this is
28 # a pull request then we can checkout the head.
30 # gost-engine has submodules
33 # If this run was triggered by a pull request event, then checkout
34 # the head of the pull request instead of the merge commit.
35 - run: git checkout HEAD^2
36 if: ${{ github.event_name == 'pull_request' }}
38 # Initializes the CodeQL tools for scanning.
39 - name: Initialize CodeQL
40 uses: github/codeql-action/init@v1
42 # Override language selection by uncommenting this and choosing your languages
45 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
46 # If this step fails, then you should remove it and run the build manually (see below)
48 # uses: github/codeql-action/autobuild@v1
50 # âšī¸ Command-line programs to run using the OS shell.
51 # đ https://git.io/JvXDl
53 # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines
54 # and modify them (or add more) to build your code if your project
55 # uses a compiled language
58 curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus
59 sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1)
60 if [ "$APT_INSTALL" ]; then sudo apt-get install -y $APT_INSTALL; fi
61 git clone --depth 1 -b ${OPENSSL_BRANCH} https://github.com/openssl/openssl.git
62 export PREFIX=`pwd`/opt
63 export RPATH="-Wl,-rpath=${PREFIX}/lib"
65 git describe --always --long
66 ./config shared -d --prefix=${PREFIX} --openssldir=${PREFIX} --libdir=lib ${RPATH}
68 make -s build_programs
74 cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ${ASAN} ..
77 - name: Perform CodeQL Analysis
78 uses: github/codeql-action/analyze@v1