Skip to content

Commit

Permalink
cleanup linux wf (#215)
Browse files Browse the repository at this point in the history
* cleanup linux wf

* only on master
  • Loading branch information
Zemurin authored Feb 1, 2023
1 parent fccb243 commit c42749e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/linux_codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 16 * * 6'

Expand Down Expand Up @@ -54,27 +56,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- run: |
git submodule update --init --recursive
mkdir $HOME/usr
export PATH="$HOME/usr/bin:$PATH"
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-11 g++-11
sudo apt-get install libgtest-dev
sudo ln -s /usr/bin/gcc-11 /usr/local/bin/gcc
sudo ln -s /usr/bin/g++-11 /usr/local/bin/g++
# Export CC and CXX to tell cmake which compiler to use
export CC=/usr/bin/gcc-11
export CXX=/usr/bin/g++-11
# Check versions of gcc, g++ and cmake
gcc -v && g++ -v && cmake --version
# Run your build commands next
chmod u+x ./build_linux_foreign.sh
bash ./build_linux_foreign.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/windows_build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build and test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build_and_test:
Expand Down

0 comments on commit c42749e

Please sign in to comment.