You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
3.6 KiB
YAML
128 lines
3.6 KiB
YAML
5 years ago
|
#
|
||
|
# Author: Hari Sekhon
|
||
|
# Date: Tue Feb 4 09:53:28 2020 +0000
|
||
|
#
|
||
5 years ago
|
# vim:ts=2:sts=2:sw=2:et
|
||
5 years ago
|
#
|
||
|
# https://github.com/harisekhon/bash-tools
|
||
|
#
|
||
|
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
|
||
|
#
|
||
|
# https://www.linkedin.com/in/harisekhon
|
||
|
#
|
||
|
|
||
5 years ago
|
# MarketPlace: https://github.com/marketplace?type=actions
|
||
|
|
||
5 years ago
|
name: CI Ubuntu
|
||
5 years ago
|
|
||
5 years ago
|
env:
|
||
|
DEBUG: 1
|
||
|
|
||
|
on: # [push]
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
schedule:
|
||
|
# * is a special character in YAML so you have to quote this string
|
||
5 years ago
|
- cron: '0 10 30 * *'
|
||
5 years ago
|
|
||
|
jobs:
|
||
|
build:
|
||
5 years ago
|
#name: build
|
||
|
timeout-minutes: 10
|
||
5 years ago
|
#runs-on: ubuntu-latest
|
||
5 years ago
|
|
||
5 years ago
|
runs-on: ${{ matrix.os }}
|
||
|
strategy:
|
||
|
matrix:
|
||
5 years ago
|
os: [ubuntu-latest, ubuntu-16.04]
|
||
5 years ago
|
# node: [6, 8, 10]
|
||
5 years ago
|
|
||
|
steps:
|
||
5 years ago
|
- uses: actions/checkout@v2
|
||
5 years ago
|
- uses: actions/cache@v1
|
||
|
with:
|
||
|
path: ~/.cache/pip
|
||
5 years ago
|
key: ${{ runner.os }}-pip-bash-tools # ${{ hashFiles('**/requirements.txt') }}
|
||
5 years ago
|
restore-keys: |
|
||
|
${{ runner.os }}-pip-
|
||
5 years ago
|
- uses: actions/cache@v1
|
||
|
with:
|
||
|
path: ~/.cpanm
|
||
|
key: ${{ runner.os }}-cpanm-bash-tools # ${{ hashFiles('**/cpan-requirements.txt') }}
|
||
|
restore-keys: |
|
||
|
${{ runner.os }}-cpanm-
|
||
5 years ago
|
- name: build & test
|
||
|
run: make build test
|
||
|
#- name: Run a multi-line script
|
||
|
# run: |
|
||
|
# echo Add other actions to build,
|
||
|
# echo test, and deploy your project.
|
||
5 years ago
|
|
||
5 years ago
|
# ============================================================================
|
||
|
# https://github.com/actions/cache
|
||
|
# ============================================================================
|
||
|
# Python
|
||
5 years ago
|
# - uses: actions/cache@v1
|
||
|
# if: startsWith(runner.os, 'Linux')
|
||
|
# with:
|
||
|
# path: ~/.cache/pip
|
||
|
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||
|
# restore-keys: |
|
||
|
# ${{ runner.os }}-pip-
|
||
5 years ago
|
#
|
||
5 years ago
|
# - uses: actions/cache@v1
|
||
|
# if: startsWith(runner.os, 'macOS')
|
||
|
# with:
|
||
|
# path: ~/Library/Caches/pip
|
||
|
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||
|
# restore-keys: |
|
||
|
# ${{ runner.os }}-pip-
|
||
5 years ago
|
# ============================================================================
|
||
5 years ago
|
# Perl
|
||
|
# - uses: actions/cache@v1
|
||
|
# with:
|
||
|
# path: ~/.cpanm
|
||
|
# key: ${{ runner.os }}-cpanm-${{ hashFiles('**/cpan-requirements.txt') }}
|
||
|
# restore-keys: |
|
||
|
# ${{ runner.os }}-cpanm-
|
||
|
# ============================================================================
|
||
5 years ago
|
# Go
|
||
5 years ago
|
# - uses: actions/cache@v1
|
||
|
# with:
|
||
|
# path: ~/go/pkg/mod
|
||
|
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||
|
# restore-keys: |
|
||
|
# ${{ runner.os }}-go-
|
||
5 years ago
|
# ============================================================================
|
||
5 years ago
|
# Java / Maven
|
||
5 years ago
|
# - uses: actions/cache@v1
|
||
|
# with:
|
||
|
# path: ~/.m2/repository
|
||
|
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||
|
# restore-keys: |
|
||
|
# ${{ runner.os }}-maven-
|
||
5 years ago
|
# ============================================================================
|
||
5 years ago
|
# Scala / SBT
|
||
5 years ago
|
# - name: Cache SBT ivy cache
|
||
|
# uses: actions/cache@v1
|
||
|
# with:
|
||
|
# path: ~/.ivy2/cache
|
||
|
# key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}
|
||
|
# - name: Cache SBT
|
||
|
# uses: actions/cache@v1
|
||
|
# with:
|
||
|
# path: ~/.sbt
|
||
|
# key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
|
||
5 years ago
|
# ============================================================================
|
||
5 years ago
|
|
||
5 years ago
|
# docker:
|
||
|
# #name: docker
|
||
|
# runs-on:
|
||
|
# - ubuntu-latest
|
||
|
#
|
||
|
# steps:
|
||
|
# - uses: docker://harisekhon/centos-dev
|
||
|
# - name: build & test
|
||
|
# run: make build test
|