Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into issue-302-log-key-handle
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMD committed Oct 26, 2023
2 parents b51878d + 5c161b4 commit b501c8d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 28 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
schedule:
- cron: '0 8 * * 6'

permissions:
security-events: write

jobs:
CodeQL-Build:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: dependencies
run: brew install check cmake help2man mandoc [email protected] pkg-config automake
run: brew install check cmake help2man libfido2 mandoc pkg-config automake
- name: build
env:
CC: ${{ matrix.cc }}
Expand Down
37 changes: 10 additions & 27 deletions build-aux/ci/build-osx.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
#!/usr/bin/env bash
set -ex

BUILDROOT="$(git rev-parse --show-toplevel)"

pushd "/tmp" &>/dev/null
# Build and install libcbor
git clone https://github.com/pjk/libcbor
pushd "/tmp/libcbor" &>/dev/null
git checkout v0.5.0
cmake -Bbuild -H.
cmake --build build -- --jobs=2 VERBOSE=1
sudo make -j $(sysctl -n hw.logicalcpu) -C build install
popd &>/dev/null

# Build and install libfido2
export PKG_CONFIG_PATH=/usr/local/opt/[email protected]/lib/pkgconfig
git clone https://github.com/Yubico/libfido2
pushd "/tmp/libfido2" &>/dev/null
cmake -Bbuild -H.
cmake --build build -- --jobs=2 VERBOSE=1
sudo make -j $(sysctl -n hw.logicalcpu) -C build install
popd &>/dev/null
popd &>/dev/null

pushd "$BUILDROOT" &>/dev/null
./autogen.sh
./configure --disable-silent-rules --disable-man
make -j $(sysctl -n hw.logicalcpu)
popd &>/dev/null
# Link to the same OpenSSL version as libfido2.
OPENSSL="$(brew deps --installed libfido2 | grep openssl)"
LIBFIDO2_PKGCONF="$(brew --prefix libfido2)/lib/pkgconfig"
OPENSSL_PKGCONF="$(brew --prefix "${OPENSSL}")/lib/pkgconfig"
export PKG_CONFIG_PATH="${LIBFIDO2_PKGCONF}:${OPENSSL_PKGCONF}"

./autogen.sh
./configure --disable-silent-rules --disable-man
make -j $(sysctl -n hw.logicalcpu)
make check

0 comments on commit b501c8d

Please sign in to comment.