aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-09 22:14:28 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-09 22:14:28 +0200
commita6679205fc9d675f6d43f45ee1b6ff0512513cee (patch)
tree1654e281f5a33bd8fb04a4e989d18cc896a63aa4
parent9ac8400684b12e919c929d585a6ae32c0554f7af (diff)
downloadblogc-a6679205fc9d675f6d43f45ee1b6ff0512513cee.tar.gz
blogc-a6679205fc9d675f6d43f45ee1b6ff0512513cee.tar.bz2
blogc-a6679205fc9d675f6d43f45ee1b6ff0512513cee.zip
build: migrate from travis-ci to github-actions
-rw-r--r--.github/workflows/yatr.yaml81
-rw-r--r--.travis.yml90
-rw-r--r--README.md2
3 files changed, 82 insertions, 91 deletions
diff --git a/.github/workflows/yatr.yaml b/.github/workflows/yatr.yaml
new file mode 100644
index 0000000..58f2357
--- /dev/null
+++ b/.github/workflows/yatr.yaml
@@ -0,0 +1,81 @@
+name: yatr
+on:
+ - push
+
+jobs:
+ yatr:
+ runs-on: "${{ matrix.image }}"
+
+ strategy:
+ fail-fast: false
+ matrix:
+ target:
+ - distcheck
+ - valgrind
+ - check-make-embedded
+ compiler:
+ - gcc
+ - clang
+ image:
+ - ubuntu-18.04
+ include:
+ - target: distcheck
+ compiler: clang
+ image: macos-10.15
+ - target: clang-analyzer
+ compiler: clang
+ image: ubuntu-18.04
+ - target: static
+ compiler: gcc
+ image: ubuntu-18.04
+ - target: static-all
+ compiler: gcc
+ image: ubuntu-18.04
+ - target: win32
+ compiler: gcc
+ image: ubuntu-18.04
+ - target: win64
+ compiler: gcc
+ image: ubuntu-18.04
+
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: |
+ sudo gem install ronn
+ if [[ "x${{ matrix.image }}" = xubuntu-* ]]; then
+ if [[ "x${{ matrix.target }}" = *check* ]] || [[ "x${{ matrix.target }}" = xvalgrind ]]; then
+ sudo apt-get install -y libcmocka-dev
+ fi
+ if [[ "x${{ matrix.target }}" = xvalgrind ]]; then
+ sudo apt-get install -y valgrind
+ fi
+ if [[ "x${{ matrix.target }}" = xclang-analyzer ]]; then
+ sudo apt-get install -y clang-tools
+ fi
+ if [[ "x${{ matrix.target }}" = xwin32 ]]; then
+ sudo apt-get install -y gcc-mingw-w64-i686
+ fi
+ if [[ "x${{ matrix.target }}" = xwin64 ]]; then
+ sudo apt-get install -y gcc-mingw-w64-x86-64
+ fi
+ elif [[ "x${{ matrix.image }}" = xmacos-* ]]; then
+ brew install automake coreutils cmocka pkg-config
+ fi
+
+ - name: Run yatr
+ if: ${{ matrix.compiler == 'gcc' }}
+ env:
+ CC: "${{ matrix.compiler }}"
+ TARGET: "${{ matrix.target }}"
+ DISTFILES_URL: "${{ secrets.DISTFILES_URL }}"
+ run: curl -sSf https://yatr.rgm.io/run.sh | bash
+
+ - name: Run yatr without publisher
+ if: ${{ matrix.compiler != 'gcc' }}
+ env:
+ CC: "${{ matrix.compiler }}"
+ TARGET: "${{ matrix.target }}"
+ run: curl -sSf https://yatr.rgm.io/run.sh | bash
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index f0f03bb..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,90 +0,0 @@
-dist: xenial
-language: c
-
-matrix:
- include:
- - compiler: gcc
- env:
- - TARGET=distcheck
- addons:
- apt:
- packages:
- - libcmocka-dev
- - compiler: clang
- env:
- - TARGET=distcheck
- - DISABLE_PUBLISHER=1
- addons:
- apt:
- packages:
- - libcmocka-dev
- - os: osx
- osx_image: xcode11.3
- compiler: clang
- env:
- - TARGET=distcheck
- - DISABLE_PUBLISHER=1
- addons:
- homebrew:
- packages:
- - cmocka
- - xz
- update: true
- - compiler: gcc
- env:
- - TARGET=check-make-embedded
- addons:
- apt:
- packages:
- - libcmocka-dev
- - compiler: gcc
- env:
- - TARGET=valgrind
- addons:
- apt:
- packages:
- - libcmocka-dev
- - valgrind
- - compiler: clang
- env:
- - TARGET=valgrind
- addons:
- apt:
- packages:
- - libcmocka-dev
- - valgrind
- - compiler: clang
- env:
- - TARGET=clang-analyzer
- - compiler: gcc
- env:
- - TARGET=dist-srpm
- addons:
- apt:
- packages:
- - rpm
- - compiler: gcc
- env:
- - TARGET=static
- - compiler: gcc
- env:
- - TARGET=static-all
- - compiler: gcc
- env:
- - TARGET=win32
- addons:
- apt:
- packages:
- - gcc-mingw-w64-i686
- - compiler: gcc
- env:
- - TARGET=win64
- addons:
- apt:
- packages:
- - gcc-mingw-w64-x86-64
-
-install:
- - gem install ronn
-
-script: curl -sSf https://yatr.rgm.io/run.sh | bash
diff --git a/README.md b/README.md
index 92338e0..2194f2c 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# blogc
-[![Build Status](https://travis-ci.org/blogc/blogc.svg?branch=master)](https://travis-ci.org/blogc/blogc)
+![Build Status](https://github.com/blogc/blogc/workflows/yatr/badge.svg)
A blog compiler.