-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kulp/switch-to-github-actions
Switch to GitHub Actions for CI
- Loading branch information
Showing
3 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters