Skip to content

Start working

Start working #5

Workflow file for this run

name: Build Deno Shared Library
on:
push:
branches: [ main, master ]
pull_request:
jobs:
build-deno-so:
name: Build shared library for Deno
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build g++ git
- name: Setup CMake >= 3.30
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.31.x'
- name: Configure CMake (Release)
env:
CXX: g++
run: |
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
- name: Build shared library
run: |
cmake --build build --config Release
- name: Collect shared library artifact
run: |
mkdir -p deno-lib/linux-x86_64
cp build/libcpp_bindings_linux.so* deno-lib/linux-x86_64/
ls -R deno-lib
- name: Upload .so artifact for Deno
uses: actions/upload-artifact@v4
with:
name: cpp-bindings-linux-so-linux-x86_64
path: deno-lib/**