2020-08-31 23:12:18 +03:00
|
|
|
name: 'CI'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2020-09-17 11:06:25 +03:00
|
|
|
|
|
|
|
- uses: satackey/action-docker-layer-caching@v0.0.8
|
|
|
|
continue-on-error: true
|
|
|
|
with:
|
2020-09-17 12:11:06 +03:00
|
|
|
key: docker-cache-${{ hashFiles('docker/**') }}-{hash}
|
|
|
|
restore-keys: docker-cache-${{ hashFiles('docker/**') }}-
|
2020-08-31 23:12:18 +03:00
|
|
|
- name: Build docker image
|
|
|
|
uses: ./.github/actions/docker
|
|
|
|
|
|
|
|
- name: Build target_lo in docker
|
|
|
|
uses: ./.github/actions/docker
|
|
|
|
with:
|
|
|
|
run: make -C target_lo
|
|
|
|
|
|
|
|
- name: Build target_f1 in docker
|
|
|
|
uses: ./.github/actions/docker
|
|
|
|
with:
|
|
|
|
run: make -C target_f1
|