Skip to content

lib/verify: Compare the entire root hash not just the first byte #102

lib/verify: Compare the entire root hash not just the first byte

lib/verify: Compare the entire root hash not just the first byte #102

Workflow file for this run

name: BPAK build
on: [push, pull_request]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install cmake lcov uuid-runtime python3-dev libmbedtls-dev liblzma-dev uuid-dev
- name: Build BPAK
run: |
cmake -DBPAK_BUILD_TESTS=1 -B build
make -j$(nproc) -C build
ctest -j$(nproc) --output-on-failure --test-dir build
lcov --directory build --capture --output-file coverage.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- name: Download Coverity Build Tool
run: |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=jonasblixt%2Fbpak" -O cov-analysis-linux64.tar.gz
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: Build with cov-build
run: |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
make clean -C build
cov-configure --template --compiler gcc --comptype gcc
cov-build --dir cov-int make -C build
- name: Submit the result to Coverity Scan
run: |
tar czvf bpak.tgz cov-int
curl \
--form project=jonasblixt%2Fbpak \
--form token=$TOKEN \
--form email=jonpe960@gmail.com \
--form file=@bpak.tgz \
--form version=master \
--form description="bpak" \
https://scan.coverity.com/builds?project=jonasblixt%2Fbpak
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
build-windows:
runs-on: windows-latest
name: windows-build
defaults:
run:
shell: msys2 {0}
steps:
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
install: gcc make cmake libutil-linux-devel libutil-linux
- name: 'Build'
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBPAK_BUILD_MINIMAL=1
make -C build VERBOSE=1