-
-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (53 loc) · 1.46 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
name: 'Build'
on:
pull_request: {}
push:
branches:
- 'master'
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}
jobs:
firmware-mod-kit:
runs-on: 'ubuntu-latest'
defaults:
run:
working-directory: 'firmware-mod-kit/src'
outputs:
cache_key: '${{ runner.os }}/firmware-mod-kit/src'
cache_path: 'firmware-mod-kit/src'
steps:
- uses: 'actions/checkout@v3'
with:
submodules: true
- id: 'cache'
uses: 'actions/cache@v3'
with:
path: 'firmware-mod-kit/src'
key: '${{ runner.os }}/firmware-mod-kit/src'
- run: 'autoreconf --force --install'
- run: './configure --quiet'
- run: 'make --silent'
image:
needs: 'firmware-mod-kit'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3'
with:
submodules: true
- uses: 'actions/cache@v3'
with:
path: 'cache/uxgpro-*'
key: "uxgpro-${{ hashFiles('Makefile') }}"
- uses: 'actions/cache@v3'
with:
path: '${{ needs.firmware-mod-kit.outputs.cache_path }}'
key: '${{ needs.firmware-mod-kit.outputs.cache_key }}'
- uses: 'docker/login-action@v2'
with:
username: '${{ secrets.DOCKER_USERNAME }}'
password: '${{ secrets.DOCKER_PASSWORD }}'
- if: "github.event_name != 'pull_request'"
run: 'echo DOCKER_PUSH=true >> $GITHUB_ENV'
- run: 'make build'