From dde28a2bc65786b8e0f1da81caee5d774c759a43 Mon Sep 17 00:00:00 2001 From: Stephen Mathieson Date: Tue, 25 Jun 2024 13:37:40 -0400 Subject: [PATCH] Move to clibs org, replace Travis with GHA --- .github/workflows/tests.yml | 11 +++++++++++ .travis.yml | 10 ---------- Readme.md | 19 +++++++++---------- package.json | 2 +- 4 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..58b7dab --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,11 @@ +name: Tests + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: make example + - run: ./example diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 57721e2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: c -before_install: - - sudo apt-get update - - sudo apt-get install libcurl4-gnutls-dev -qq - - git clone https://github.com/clibs/clib.git /tmp/clib - - sudo make -C /tmp/clib install -install: clib install -script: - - make example - - ./example diff --git a/Readme.md b/Readme.md index d537899..8a347ee 100644 --- a/Readme.md +++ b/Readme.md @@ -1,29 +1,28 @@ - # wiki-registry.c - Turn a GitHub Wiki page into a package registry - -[![Build Status](https://travis-ci.org/stephenmathieson/wiki-registry.c.png?branch=master)](https://travis-ci.org/stephenmathieson/wiki-registry.c) +Turn a GitHub Wiki page into a package registry ## Installation - Install with [clib(1)](https://github.com/clibs/clib): +Install with [clib(1)](https://github.com/clibs/clib): - $ clib install stephenmathieson/wiki-registry.c +``` +$ clib install clibs/wiki-registry.c +``` ## API ### `list_t *wiki_registry_parse(const char *html)` - Get a [list](https://github.com/clibs/list) of packages from the given `html`. +Get a [list](https://github.com/clibs/list) of packages from the given `html`. ### `list_t *wiki_registry_packages(const char *url)` - Get a [list](https://github.com/clibs/list) of packages from the given GitHub wiki `url`. +Get a [list](https://github.com/clibs/list) of packages from the given GitHub wiki `url`. ### `void wiki_package_free(wiki_package_t *pkg)` - Free a wiki `pkg`. +Free a wiki `pkg`. ## Example @@ -77,4 +76,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/package.json b/package.json index 6ab5362..ac14e10 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "wiki-registry", "version": "0.0.4", - "repo": "stephenmathieson/wiki-registry.c", + "repo": "clibswiki-registry.c", "description": "Turn a GitHub Wiki page into a package registry", "keywords": [ "registry", "github", "wiki" ], "license": "MIT",