Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ks0n/ci into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Skallwar committed Nov 30, 2020
2 parents c716fe0 + 90e9ab8 commit 1787165
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
tags
*.swp
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN echo "notroot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/notroot
USER notroot
WORKDIR /home/notroot


# Install yay
RUN $pacman -S git
RUN git clone 'https://aur.archlinux.org/yay-bin.git'
Expand Down
47 changes: 47 additions & 0 deletions build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: ubsh-build-test

on:
push:
branches:
- main

pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
container:
image: ks0n/arch_c_ci:1.0.2
strategy:
matrix:
compiler: ['gcc', 'clang']

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build ubsh
run: |
meson build
ninja -C build
env:
CC: ${{ matrix.compiler }}

tests:
runs-on: ubuntu-latest
container:
image: ks0n/arch_c_ci:1.0.2
needs: build

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Run Unit Tests
run: |
meson build -Denable_tests=true
ninja -C build test
env:
CC: ${{ matrix.compiler }}
10 changes: 10 additions & 0 deletions clang-format_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: clang-format check
on: [push]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check for C programs.
uses: jidicula/clang-format-action@master

0 comments on commit 1787165

Please sign in to comment.