Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ricksterhd123 committed Jan 25, 2024
1 parent 0f0aebf commit 0b26c92
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/mruv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: mruv CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
tags: mruv:latest
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
- name: Build mruv
run: bash build.sh
- name: Run mruv
run: cd build && ./mruv
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ add_library(libuv STATIC IMPORTED)
set_target_properties(libuv PROPERTIES IMPORTED_LOCATION /usr/local/lib/libuv.a)
set_target_properties(libuv PROPERTIES INTERFACE_INCLUDE_DIRECTORIES /usr/local/include)

target_link_libraries(mruv PRIVATE libuv mruby m)
target_compile_options(mruv PUBLIC "-pthread")
target_link_libraries(mruv PRIVATE libuv mruby m dl pthread)
target_include_directories(mruv PRIVATE "${PROJECT_BINARY_DIR}")
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt update && apt install -y wget
RUN apt update && apt install -y curl
RUN apt update && apt install -y gnupg2
RUN apt update && apt install -y netcat
RUN apt update && apt install -y libpthread-stubs0-dev

# grab rvm && install ruby
RUN gpg2 --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Expand Down

0 comments on commit 0b26c92

Please sign in to comment.