Skip to content

Security update (#872) #228

Security update (#872)

Security update (#872) #228

Workflow file for this run

name: macos
on:
push:
branches:
- master
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: true
jobs:
build-macos:
runs-on: ${{matrix.os}}-12
strategy:
matrix:
include:
- os: macos
compiler: clang++
cpp: 17
name: "${{matrix.os}}/${{matrix.compiler}}/c++${{matrix.cpp}}"
steps:
- uses: actions/checkout@v3
- name: Get polyfills repo
uses: actions/checkout@v3
with:
repository: 'uber/h3'
path: 'h3'
ref: stable-3.x
- name: Setup Environment
run: |
brew tap shivammathur/php
brew update
brew install re2c cmake coreutils openssl libiconv re2 pcre yaml-cpp zstd googletest shivammathur/php/[email protected]
brew link --overwrite --force shivammathur/php/[email protected]
/usr/local/Frameworks/Python.framework/Versions/3.11/bin/pip3 install jsonschema
- name: Build Uber h3
run: cmake -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_CXX_STANDARD=${{matrix.cpp}} -S $GITHUB_WORKSPACE/h3 -B ${{runner.workspace}}/h3/build && make install -C ${{runner.workspace}}/h3/build -j$(nproc) all
- name: Run cmake
run: cmake -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_CXX_STANDARD=${{matrix.cpp}} -DDOWNLOAD_MISSING_LIBRARIES=On -S $GITHUB_WORKSPACE -B ${{runner.workspace}}/build
- name: Build all
run: make -C ${{runner.workspace}}/build -j$(nproc) all
- name: Run unit tests
run: make -C ${{runner.workspace}}/build -j$(nproc) test
- name: Compile dummy PHP script
working-directory: ${{runner.workspace}}/build
run: |
echo 'hello world' > demo.php
$GITHUB_WORKSPACE/objs/bin/kphp2cpp --cxx ${{matrix.compiler}} demo.php
kphp_out/server -o