PacketQueue: neddoc refined #63
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: "Build: Linux" | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'src/**' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'src/**' | |
workflow_dispatch: | |
# nothing | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
mode: ["debug", "release"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: omnetpp/omnetpp | |
path: omnetpp | |
- uses: actions/checkout@v3 | |
with: | |
path: inet | |
- run: mkdir -p /home/runner/work/ccache | |
- uses: actions/cache@v3 | |
with: | |
path: /home/runner/work/ccache | |
key: native-${{ matrix.mode }}-ccache-${{ github.run_id }} | |
# See: https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache | |
restore-keys: native-${{ matrix.mode }}-ccache | |
- name: Building binaries | |
env: | |
MODE: ${{ matrix.mode }} | |
run: | | |
echo "::group::Installing packages" | |
sudo apt update | |
sudo apt install -y --no-install-recommends git wget curl ca-certificates \ | |
make ccache clang lld gdb bison flex perl doxygen graphviz libxml2-dev zlib1g-dev \ | |
libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libz3-dev \ | |
libopenscenegraph-dev python3 | |
echo "::endgroup::" | |
source $GITHUB_WORKSPACE/inet/_scripts/github/build-omnetpp.sh | |
source $GITHUB_WORKSPACE/inet/_scripts/github/build-inet.sh |