Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abelino committed Dec 20, 2024
1 parent cec94a7 commit b712ba6
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,54 @@
on: push

jobs:
build:
name: Build
strategy:
matrix:
os:
- ubuntu-24.04
- ubuntu-22.04
- macos-13
runs-on: ${{ matrix.os }}
steps:
- name: Set up Elixir
if: ${{ startsWith(matrix.os, 'ubuntu') }}
uses: erlef/setup-beam@v1
with:
otp-version: "27.1.3"
elixir-version: "1.17.3"
- name: Set up Elixir
if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install elixir
- name: Checkout repository
uses: actions/checkout@v4
- name: Get dependencies
run: mix deps.get --only dev
- name: Restore PLTs
uses: actions/cache@v4
with:
path: _build/dev/plt
key: plt-${{ github.ref }}-${{ github.sha }}
restore-keys: |
plt-${{ github.ref }}-${{ github.sha }}
plt-${{ github.ref }}-
plt-refs/heads/master-
- name: Install system deps
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt install \
build-essential \
devscripts \
equivs \
libtasn1-6-dev \
libjson-glib-dev \
libseccomp-dev \
libgmp-dev
- name: Install system deps
if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install automake gawk socat json-glib
- name: Compile
run: mix compile
type_check:
name: Type Check
runs-on: ubuntu-24.04
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ find_program(MAKE make REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBTASN1 libtasn1 REQUIRED)
pkg_check_modules(LIBJASON_GLIB json-glib-1.0 REQUIRED)
pkg_check_modules(LIBSECCOMP libseccomp REQUIRED)
pkg_check_modules(LIBGMP gmp REQUIRED)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
pkg_check_modules(LIBSECCOMP libseccomp REQUIRED)
endif()

ProcessorCount(NPROC)

ExternalProject_Add(libtpms
Expand Down

0 comments on commit b712ba6

Please sign in to comment.