@@ -35,29 +35,36 @@ runs:
35
35
pip3 install meson
36
36
shell : bash
37
37
38
- - name : Print run number
39
- run : |
40
- echo "Run number for native = ${{ inputs.run_number }}"
41
- shell : bash
42
-
43
38
- name : Build for ${{ inputs.arch }}
44
39
run : |
45
40
mkdir build_${{ inputs.arch }}
46
41
./scripts/build_openssl_${{ inputs.arch }}.sh
47
42
./scripts/build_glib_${{ inputs.arch }}.sh
48
43
cd build_${{ inputs.arch }}
49
- cmake -DCMAKE_INSTALL_PREFIX=../dist_${{ inputs.arch }} -DCMAKE_TOOLCHAIN_FILE=../cmake/linux/${{ matrix.arch }}/toolchain.cmake -DOPENSSL_ROOT_DIR=../build_${{ matrix.arch }} -DOPENSSL_CRYPTO_LIBRARY=../build_${{ matrix.arch }}/lib/libcrypto.so -DSUA_BUILD_NUMBER=${{ inputs.run_number }} ..
44
+ cmake \
45
+ -DCMAKE_INSTALL_PREFIX=../dist_${{ inputs.arch }} \
46
+ -DCMAKE_TOOLCHAIN_FILE=../cmake/linux/${{ matrix.arch }}/toolchain.cmake \
47
+ -DOPENSSL_ROOT_DIR=../build_${{ matrix.arch }} \
48
+ -DOPENSSL_CRYPTO_LIBRARY=../build_${{ matrix.arch }}/lib/libcrypto.so \
49
+ -DSUA_BUILD_NUMBER=${{ inputs.run_number }} ..
50
50
make
51
51
make install
52
52
shell : bash
53
53
54
- # - name: Run unit tests
55
- # if: ${{ inputs.arch=='amd64' }}
56
- # run: |
57
- # cd dist_${{ inputs.arch }}/utest
58
- # ./TestSDVSelfUpdateAgent
54
+ - name : Run unit tests
55
+ if : ${{ inputs.arch=='amd64' }}
56
+ run : |
57
+ cd dist_${{ inputs.arch }}/utest
58
+ ./TestSDVSelfUpdateAgent
59
+ shell : bash
59
60
60
61
- name : Compress artifacts
61
- run : tar -czvf sua_${{ inputs.arch }}.tar.gz --exclude=lib/cmake --exclude=lib/pkgconfig -C dist_${{ matrix.arch }} bin/sdv-self-update-agent lib
62
+ run : |
63
+ tar -czvf sua-${{ inputs.arch }}-build-${{ inputs.run_number }}.tar.gz \
64
+ --transform s/dist_${{ inputs.arch }}/sua-${{ inputs.arch }}-build-${{ inputs.run_number }}/ \
65
+ --exclude=dist_${{ inputs.arch }}/lib/cmake \
66
+ --exclude=dist_${{ inputs.arch }}/lib/pkgconfig \
67
+ dist_${{ inputs.arch }}/bin/sdv-self-update-agent \
68
+ dist_${{ inputs.arch }}/lib
62
69
shell : bash
63
70
0 commit comments