2727 tag : ${{ steps.ref_name.outputs.SOURCE_TAG }}
2828 body : " RtBrick BNG Blaster Version ${{ steps.ref_name.outputs.SOURCE_TAG }}"
2929
30- build :
30+ ubuntu :
3131 name : Build Release ${{matrix.os}}
3232 needs : [release]
3333 runs-on : ${{matrix.os}}
@@ -40,11 +40,11 @@ jobs:
4040
4141 - name : Download RtBrick libdict
4242 shell : bash
43- run : wget https://github.com/rtbrick/libdict/releases/download/1.0.4 /libdict-${{matrix.os}}.zip
43+ run : wget https://github.com/rtbrick/libdict/releases/download/1.0.5 /libdict-${{matrix.os}}.zip
4444
4545 - name : Install RtBrick libdict
4646 shell : bash
47- run : unzip libdict-${{matrix.os}}.zip; sudo dpkg -i libdict_1.0.4_amd64 .deb; sudo dpkg -i libdict-dev_1.0.4_amd64 .deb
47+ run : unzip libdict-${{matrix.os}}.zip; sudo dpkg -i libdict_1.0.5_amd64 .deb; sudo dpkg -i libdict-dev_1.0.5_amd64 .deb
4848
4949 - name : Install Dependencies
5050 shell : bash
9191 file : build/bngblaster_${{ steps.ref_name.outputs.SOURCE_TAG }}_amd64.deb
9292 asset_name : bngblaster-${{ steps.ref_name.outputs.SOURCE_TAG }}-${{ matrix.os }}_amd64.deb
9393 tag : ${{ steps.ref_name.outputs.SOURCE_TAG }}
94+
95+ debiab :
96+ name : Build Release ${{matrix.os}}
97+ needs : [release]
98+ runs-on : ubuntu-latest
99+ container :
100+ image : debian:${{matrix.os}}
101+ volumes :
102+ - ${{github.workspace}}:${{github.workspace}}
103+
104+ strategy :
105+ matrix :
106+ os : [bookworm, trixie]
107+
108+ steps :
109+ - uses : actions/checkout@v4
110+
111+ - name : Install dependencies
112+ shell : bash
113+ run : apt update && apt install build-essential cmake wget unzip libcunit1-dev libncurses-dev libssl-dev libjansson-dev libcmocka-dev libpcap-dev --yes
114+
115+ - name : Download RtBrick libdict
116+ shell : bash
117+ run : wget https://github.com/rtbrick/libdict/releases/download/1.0.5/libdict-${{matrix.os}}.zip
118+
119+ - name : Install RtBrick libdict
120+ shell : bash
121+ run : unzip libdict-${{matrix.os}}.zip; sudo dpkg -i libdict_1.0.5_amd64.deb; sudo dpkg -i libdict-dev_1.0.5_amd64.deb
122+
123+ - name : Get Ref Names
124+ id : ref_name
125+ run : |
126+ echo "SOURCE_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
127+ echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
128+ echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
129+
130+ - name : Set export SOURCE_DATE_EPOCH to git commit time
131+ run : |
132+ echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> $GITHUB_ENV
133+
134+ - name : Create Build Environment
135+ run : cmake -E make_directory ${{ github.workspace }}/build
136+
137+ - name : Configure CMake
138+ shell : bash
139+ working-directory : ${{ github.workspace }}/build
140+ run : cmake $GITHUB_WORKSPACE -DBNGBLASTER_VERSION=${{ steps.ref_name.outputs.SOURCE_TAG }} -DBNGBLASTER_TESTS=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBNGBLASTER_OS=${{matrix.os}}
141+
142+ - name : Build
143+ working-directory : ${{ github.workspace }}/build
144+ shell : bash
145+ run : cmake --build . --config $BUILD_TYPE
146+
147+ - name : Test
148+ working-directory : ${{ github.workspace }}/build
149+ shell : bash
150+ run : ctest -C $BUILD_TYPE
151+
152+ - name : Package
153+ working-directory : ${{github.workspace}}/build
154+ shell : bash
155+ run : cpack -G DEB
156+
157+ - name : Upload Debian Package
158+ uses : svenstaro/upload-release-action@v2
159+ with :
160+ repo_token : ${{ secrets.GITHUB_TOKEN }}
161+ file : build/bngblaster_${{ steps.ref_name.outputs.SOURCE_TAG }}_amd64.deb
162+ asset_name : bngblaster-${{ steps.ref_name.outputs.SOURCE_TAG }}-${{ matrix.os }}_amd64.deb
163+ tag : ${{ steps.ref_name.outputs.SOURCE_TAG }}
0 commit comments