-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (39 loc) · 1.23 KB
/
build.yml
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
name: Build and Release
on:
workflow_dispatch:
push:
paths-ignore:
- "docs/**"
- ".github/workflows/update-docs.yml"
- "mkdocs.yml"
env:
CACHE_PATH: ${{ secrets.CACHE_PATH }}
VERSION: ${{ github.run_number }}
BRANCH: ${{ endsWith(github.ref, 'stable') && 'stable' || (endsWith(github.ref, 'preview') && 'preview' || 'unstable') }}
jobs:
build:
name: Build Image
runs-on: self-hosted
timeout-minutes: 47000
strategy:
matrix:
include:
- board: x86_64
image: installer.iso
# - board: raspberrypi
# image: sdcard.img
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true
- name: Build System Image
run: make CACHE_PATH=$CACHE_PATH BOARD_NAME=${{matrix.board}}
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{env.CACHE_PATH}}/${{matrix.board}}/images/${{matrix.image}}
asset_name: rlxos-${{env.BRANCH}}-${{matrix.board}}-${{matrix.image}}
tag: ${{env.BRANCH}}-continuous
overwrite: true
body: ${{ github.event.head_commit.message }}