Skip to content

Commit

Permalink
CI: add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jul 22, 2024
1 parent f1aeb06 commit 0b521ae
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and test
on:
pull_request:
types:
- opened
- edited
- ready_for_review
- reopened
- synchronize
push:

jobs:
Build_and_test:
name: Build and test

if: contains(github.event.head_commit.message, '[skip ci]') == false

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Package install
run: ./ci_prereq.sh

- name: Build
run: |
make
sudo make install
make demos
9 changes: 9 additions & 0 deletions ci_prereq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

sudo apt-get update
sudo apt install -y \
devscripts \
equivs

sudo add-apt-repository ppa:stsp-0/thunk-gen
mk-build-deps --install --root-cmd sudo

0 comments on commit 0b521ae

Please sign in to comment.