Skip to content

vm: image format type support #245

vm: image format type support

vm: image format type support #245

Workflow file for this run

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 .