Skip to content

Commit

Permalink
Update Makefile, add test workflow
Browse files Browse the repository at this point in the history
The workflow comes from the mkiocccentry repo. This is an attempt to get
this working without the code populated (yet). The Makefile simply has
the rules added that seem to (me at this hour) be necessary to make this
work but it might be the Makefile has to be modified. It is not strictly
necessary to do this but it would be nice for later when (hopefully in
the next few months at most) the jparse code is actually moved here.
  • Loading branch information
xexyl committed Jul 9, 2024
1 parent f3f1390 commit 0c9ba66
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: C CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: install ctags
run: sudo apt-get install -y universal-ctags
- name: install shellcheck
run: sudo apt-get install -y shellcheck
- name: clone seqcexit
run: git clone https://github.com/lcn2/seqcexit
- name: install seqcexit
run: cd seqcexit && sudo make install
- name: clone picky
run: git clone https://github.com/xexyl/picky
- name: clone checknr
run: git clone https://github.com/lcn2/checknr.git
- name: install checknr
run: cd checknr && sudo make install
- name: install picky
run: cd picky && make && sudo cp -p picky /usr/local/bin
- name: make
run: make
- name: make slow_prep
run: make slow_prep
- name: make clobber all test
run: make clobber all test
- name: make clobber
run: make clobber
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# compile do-nothing jparse.c - hopefully placate the GitHub workflow for now
all: jparse.c
${CC} jparse.c -o jparse

clean:
@rm -vf jparse

clobber: clean

slow_prep:
@exit 0

test:
@exit 0

0 comments on commit 0c9ba66

Please sign in to comment.