Skip to content

Commit

Permalink
Merge pull request #1 from kulp/switch-to-github-actions
Browse files Browse the repository at this point in the history
Switch to GitHub Actions for CI
  • Loading branch information
kulp authored Jul 12, 2021
2 parents 4af4504 + 34e9fef commit a99f7f0
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 29 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/simple.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

env:
CASTXML_TARBALL_URL: https://data.kitware.com/api/v1/file/5b6c5b4d8d777f06857c323b/download
CARBON_MEM_DISABLE: 1

on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# Run once per month, to test whether updated packages from Atmel/Microchip break us.
- cron: '0 0 1 * *'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install needed packages
run: |
sudo apt install libxml2-utils avr-libc gcc-avr luajit luarocks
luarocks install --local xmlua
- name: Install a recent CastXML
run: |
curl --retry 2 "$CASTXML_TARBALL_URL" | tar --directory=/tmp --extract --gunzip
echo /tmp/castxml/bin >> $GITHUB_PATH
- name: Download packs
run: ./configure
- name: Run tests
run: |
eval `luarocks path`
make && make test
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ simulator needs to use in order to provide its simulation functionality).
As of this writing, the project consists essentially of the partially-inferred
interface heaers in `include/` and a few testbench programs in `test/`. Run
`make -C test check` from the top level to run self-tests. The test suite is
run as a "build" on Travis: [![Build
Status](https://travis-ci.org/kulp/lemta.svg?branch=master)](https://travis-ci.org/kulp/lemta)
run as [a "build" on GitHub Actions][1]: ![CI Status][2]

A primordial [LuaJIT](http://luajit.org)-based interface is present in `lua/`.
LuaJIT (as opposed to [Lua](http://www.lua.org)) is specifically required
Expand All @@ -34,3 +33,6 @@ well).
The testbenches use [CastXML](https://github.com/CastXML/CastXML) and
[xmllint](http://xmlsoft.org/xmllint.html) to extract information from the
inferred interface headers.

[1]: https://github.com/kulp/lemta/actions/workflows/simple.yaml
[2]: https://github.com/kulp/lemta/actions/workflows/simple.yaml/badge.svg

0 comments on commit a99f7f0

Please sign in to comment.