Skip to content

Commit

Permalink
first try create github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
taitov committed Jul 31, 2023
1 parent e3dead5 commit ee30b3f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Docker Image

on:
push:
branches: ["main"]

jobs:
build-image-builder:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Build the yanetplatform/builder
run: |
cd docker
build-unittest:
needs: build-image-builder
runs-on: ubuntu-latest
container:
image: yanetplatform/builder
steps:
- uses: actions/checkout@v3
- run: |
meson setup --prefix=/target_unittest -Dtarget=unittest build_unittest
meson compile -C build_unittest
meson test -C build_unittest
build-autotest:
needs: build-image-builder
runs-on: ubuntu-latest
container:
image: yanetplatform/builder
steps:
- uses: actions/checkout@v3
- run: |
meson setup --prefix=/target_autotest -Dtarget=autotest build_autotest
meson compile -C build_autotest
meson install -C build_autotest
build:
needs: build-image-builder
runs-on: ubuntu-latest
container:
image: yanetplatform/builder
steps:
- uses: actions/checkout@v3
- run: |
meson setup --prefix=/target build
meson compile -C build
meson install -C build
2 changes: 1 addition & 1 deletion docker/yanet-builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ WORKDIR /project/protobuf
RUN git submodule update --init --recursive
RUN ./autogen.sh && \
./configure --prefix=/usr
RUN make -j
RUN make
RUN make install && \
ldconfig

Expand Down

0 comments on commit ee30b3f

Please sign in to comment.