From b0ecdee9b738c626431b48fcc543220456622dee Mon Sep 17 00:00:00 2001 From: Matt Mets Date: Thu, 8 Oct 2020 00:04:48 +0200 Subject: [PATCH] Switch to github actions for CI, and build using both the newest SDCC, as well as the default on Ubuntu --- .github/workflows/linux-sdcc-4.0.0.yml | 30 ++++++++++++++++++++++++++ .github/workflows/linux.yml | 28 ++++++++++++++++++++++++ .travis.yml | 7 ------ README.md | 2 +- 4 files changed, 59 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/linux-sdcc-4.0.0.yml create mode 100644 .github/workflows/linux.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/linux-sdcc-4.0.0.yml b/.github/workflows/linux-sdcc-4.0.0.yml new file mode 100644 index 0000000..b87cd30 --- /dev/null +++ b/.github/workflows/linux-sdcc-4.0.0.yml @@ -0,0 +1,30 @@ +name: Linux build (SDCC 4.0.0) + +on: + push: + branches: + - master + - github_actions + tags: + - '*' + pull_request: + branches: + - master + - github_actions + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out + uses: actions/checkout@v2 + + - name: Download SDCC + run: | + wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.0.0/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2 + tar -xf sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2 + echo `pwd`/sdcc-4.0.0/bin >> $GITHUB_PATH + - name: Build examples + run: make + working-directory: examples diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..8ee610a --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,28 @@ +name: Linux build (default SDCC) + +on: + push: + branches: + - master + - github_actions + tags: + - '*' + pull_request: + branches: + - master + - github_actions + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out + uses: actions/checkout@v2 + + - name: Install SDCC + run: sudo apt-get install -y sdcc + + - name: Build examples + run: make + working-directory: examples diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index be56430..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: required -dist: bionic - -install: - - sudo apt-get -y install make sdcc - -script: make -C examples/ diff --git a/README.md b/README.md index fbf6bd6..f3bd754 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# CH554 software development kit for SDCC [![Build Status](https://travis-ci.org/Blinkinlabs/ch554_sdcc.svg?branch=master)](https://travis-ci.org/Blinkinlabs/ch554_sdcc) +# CH554 software development kit for SDCC ![Linux build](https://github.com/Blinkinlabs/ch554_sdcc/workflows/Linux%20build/badge.svg) ![image](https://raw.githubusercontent.com/Blinkinlabs/ch554_sdcc/master/documentation/devboard.png)