Skip to content

Commit

Permalink
Applied updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Aug 21, 2024
1 parent 0d57304 commit 2f02166
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_ossfuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Build OSSFuzz fuzz targets from source.
name: build_ossfuzz
on:
push:
branches: [main]
permissions: read-all
jobs:
build_ossfuzz:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- architecture: 'x64'
compiler: 'gcc'
configure_options: ''
steps:
- name: Install build dependencies
run: |
sudo apt-get -y install git
- uses: actions/checkout@v4
with:
repository: google/oss-fuzz
path: oss-fuzz
- name: Build OSSFuzz fuzz targets
working-directory: oss-fuzz
run: |
mkdir -p projects/libscca
cp projects/libyal/build.sh projects/libscca/
cp projects/libyal/project.yaml projects/libscca/
head -n 20 projects/libyal/Dockerfile > projects/libscca/Dockerfile
echo "RUN git clone --depth 1 https://github.com/libyal/libscca.git libscca" >> projects/libscca/Dockerfile
tail -n 3 projects/libyal/Dockerfile >> projects/libscca/Dockerfile
python3 infra/helper.py build_image --pull libscca
python3 infra/helper.py build_fuzzers --sanitizer address libscca
python3 infra/helper.py check_build libscca
3 changes: 0 additions & 3 deletions .github/workflows/build_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
strategy:
matrix:
include:
- architecture: 'x64'
compiler: 'gcc'
configure_options: ''
- architecture: 'x64'
compiler: 'gcc'
configure_options: '--enable-wide-character-type'
Expand Down
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ matrix:
install:
- cmd: if [%BUILD_ENVIRONMENT%]==[msbuild] (
git clone https://github.com/libyal/vstools.git ..\vstools )
- ps: If (($env:BUILD_ENVIRONMENT -eq "msbuild") -And (Test-Path ".\synctestdata.ps1")) {
.\synctestdata.ps1 }
- sh: if ( test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode" ) && test -f "./synctestdata.sh"; then ./synctestdata.sh; fi
- sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew update-reset && brew update -q; fi
- sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] (
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[libscca],
[20240608],
[20240821],
[joachim.metz@gmail.com])

AC_CONFIG_SRCDIR(
Expand Down
3 changes: 2 additions & 1 deletion libscca.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ status: "alpha"
year_of_creation: "2011"
data_format: "Windows Prefetch File (SCCA)"
documentation_url: "https://github.com/libyal/libscca/tree/main/documentation"
features: ["debug_output"]
features: ["debug_output", "ossfuzz", "python_bindings", "tools"]

[library]
description: "Library to access the Windows Prefetch File (PF) format"
features: ["pthread", "wide_character_type"]
public_types: ["file", "file_metrics", "volume_information"]

[tools]
Expand Down

0 comments on commit 2f02166

Please sign in to comment.