import: fix comma in capacity #248
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linux | |
on: | |
pull_request: | |
types: [ opened, reopened, synchronize ] | |
workflow_dispatch: | |
branches: [ master ] | |
push: | |
branches: [ master ] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
security-events: write | |
jobs: | |
linux-build: | |
runs-on: [ self-hosted, linux-do ] | |
container: voidso/nemu-ci:v1.0 | |
env: | |
_JAVA_OPTIONS: -Xmx1024m | |
steps: | |
- name: Get nEMU sources | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Configure nEMU build | |
run: | | |
cmake -G Ninja \ | |
-DNM_WITH_NETWORK_MAP=ON -DNM_WITH_DBUS=ON -DNM_WITH_REMOTE=ON -DNM_WITH_USB=ON | |
- name: Build nEMU | |
run: cmake --build . | |
- name: Check with CodeQL | |
run: | | |
/codeql/codeql database create lgtm --language=cpp \ | |
--command='cmake --build . --clean-first' | |
/codeql/codeql database analyze lgtm --format=sarif-latest \ | |
--output=./codeql-lgtm.sarif cpp-lgtm.qls | |
/codeql/codeql github upload-results \ | |
--repository="${GITHUB_REPOSITORY}" --ref="${GITHUB_REF}" \ | |
--commit="${GITHUB_SHA}" --sarif=./codeql-lgtm.sarif | |
- name: Check with cppcheck | |
run: | | |
./ci/cppcheck-sarif.py \ | |
-a "--enable=all --suppress=missingIncludeSystem --xml -q" \ | |
-o ./cppcheck.sarif -p src/ ./src | |
/codeql/codeql github upload-results \ | |
--repository="${GITHUB_REPOSITORY}" --ref="${GITHUB_REF}" \ | |
--commit="${GITHUB_SHA}" --sarif=./cppcheck.sarif | |
- name: Check with codespell | |
run: | | |
codespell -q 3 -L fo,ser,ans,chello -S \ | |
./lgtm,./_lgtm_detected_source_root | |
- name: Build nEMU out of source | |
run: | | |
rm CMakeCache.txt | |
mkdir build && cd build | |
cmake -G Ninja .. \ | |
-DNM_WITH_NETWORK_MAP=ON -DNM_WITH_DBUS=ON -DNM_WITH_REMOTE=ON -DNM_WITH_USB=ON | |
cmake --build . |