Skip to content

Commit

Permalink
Merge pull request #6 from stsp/ci
Browse files Browse the repository at this point in the history
CI: add build workflow [closes #3]
  • Loading branch information
stsp authored Jul 22, 2024
2 parents f1aeb06 + f0851dc commit 99c94c5
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
- name: Set up test environment
run: |
./ci_test_prereq.sh
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
5 changes: 5 additions & 0 deletions ci_test_prereq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

sudo add-apt-repository ppa:stsp-0/dj64
sudo apt install -y \
djstub

0 comments on commit 99c94c5

Please sign in to comment.