Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI for building on linux #402

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/build_linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI-Linux
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-linux:
name: build on ubuntu
runs-on: ubuntu latest
strategy:
matrix:
openssl: [true, false]

steps:
- name: Checkout code
uses: action/checkout@v4
- name: Setup environment
run: |
if [ "$OPENSSL" = "true" ]; then
c-p-i-o marked this conversation as resolved.
Show resolved Hide resolved
sudo apt-get install -y libssl-dev
fi
- name: Install libuv
run: |
apt-get install -y wget pkg-config
wget -q -O libuv-v1.26.0.tar.gz https://dist.libuv.org/dist/v1.26.0/libuv-v1.26.0.tar.gz
c-p-i-o marked this conversation as resolved.
Show resolved Hide resolved
tar xf libuv-v1.26.0.tar.gz
cd libuv-v1.26.0
mkdir -p build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local
make install
Loading