Skip to content

add CI pipeline hw8 #1

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
37 changes: 37 additions & 0 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: C++ CI

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

jobs:
hw8_build:
name: build homework_8
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: Install Dependencies
working-directory: homework_8/task_2
run: |
sudo apt-get update -y
sudo DEBIAN_FRONTEND=non-interactive \
xargs -a apt-requirements.txt \
apt-get install -y --no-install-recommends\

- name: Build task_2
working-directory: homework_8/task_2
run: source build.sh

- name: Test task_2
working-directory: homework_8/task_2
run: ./bin/homework_8_task_2_test







8 changes: 8 additions & 0 deletions homework_8/task_2/apt-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build-essential
cmake
cppcheck
clang-format
clang-tidy
libgtest-dev
libpng-dev
bats
Loading