-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1.2 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
name: Build and Release
on:
workflow_dispatch:
push:
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:
- device: generic-x86_64
image: installer.iso
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true
- run: rm -rf ${CACHE_PATH}/toolchain ${CACHE_PATH}/.done-*
- run: DEVICE=${{matrix.device}} go generate rlxos/tools/ignite
- run: ./tools/sync-modules.sh && go work vendor
- run: go run rlxos/tools/ignite -clean
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{env.CACHE_PATH}}/${{matrix.device}}/images/${{matrix.image}}
asset_name: rlxos-${{env.BRANCH}}-${{matrix.device}}-${{matrix.image}}
tag: ${{env.BRANCH}}-continuous
overwrite: true
body: ${{ github.event.head_commit.message }}