Skip to content

Commit

Permalink
Applied patch from Micah Snyder to fix github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Feb 9, 2024
1 parent 15b1b64 commit 3066a9e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,21 @@ jobs:
# run: ctest -C ${{ env.BUILD_TYPE }} -V

build-ubuntu:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v1

- name: Update package listings
run: sudo apt-get update
run:
sudo apt-get update

- name: Install Dependencies
run: sudo apt-get install -y llvm-16-dev clang-16 clamav # TODO: use just 'llvm-dev' when we can support any recent LLVM version.
run:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16
sudo apt-get install -y clamav

- name: Install pytest for easier to read test results
run: python3 -m pip install pytest
Expand All @@ -160,8 +165,7 @@ jobs:
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run:
cmake ${{runner.workspace}}/clamav-bytecode-compiler -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
-DENABLE_EXAMPLES=ON
cmake ${{runner.workspace}}/clamav-bytecode-compiler -D CMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -D ENABLE_EXAMPLES=ON

- name: Build
shell: bash
Expand Down

0 comments on commit 3066a9e

Please sign in to comment.